MapiAttachment
General
MapiAttachment és una classe en Aspose.Email per a Python.
Object de fixació mutable.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
storage_name | `str | None` | Read |
is_embedded_message | bool | Read | Indicates whether the attachment is an embedded message |
is_storage_attachment | bool | Read | Flags if the attachment is stored as a separate storage |
embedded_storage_name | `str | None` | Read |
filename | `str | None` | Read |
data | bytes | Read | Contains the raw byte content of the attachment |
mime_type | `str | None` | Read |
content_id | `str | None` | Read |
attach_method | int | Read | Is an integer representing the attachment method per MAPI spec |
storage_id | `int | None` | Read |
embedded_message | `“MapiMessage | None”` | Read |
custom_storage | `MsgStorage | None` | Read |
properties | MapiPropertyCollection | Read | Is a collection of MapiProperty objects associated with the attachment |
extra_streams | list[MsgStream] | Read | Lists additional MsgStream objects attached to the message |
header_reserved_0 | bytes | Read | Contains reserved header bytes for internal use |
Mètodes
| Signature | Description |
|---|---|
| `from_bytes(filename: str, data: bytes, mime_type: str | None, content_id: str |
| `from_embedded_message(message: “MapiMessage”, filename: str | None, mime_type: str |
| `set_property(property_id: int | CommonMessagePropertyId |