PropertyId
Overview
PropertyId is an IntEnum that mirrors CommonMessagePropertyId in its integer values but extends each member with a property_type attribute holding the corresponding PropertyTypeCode. This allows MapiMessage.set_property() to infer the correct MAPI type automatically, so callers do not need to supply an explicit type code alongside the property ID. Integer values are identical to those in CommonMessagePropertyId.
from aspose.email_foss import msg
message = msg.MapiMessage.create("Hello", "Body")
message.set_property(msg.PropertyId.SENDER_NAME, "Build Agent")
message.set_property(msg.PropertyId.SENDER_EMAIL_ADDRESS, "agent@example.com")
message.save("output.msg")Values
| Value | Description |
|---|---|
MESSAGE_CLASS | MAPI message class string (e.g., IPM.Note). |
TRANSPORT_MESSAGE_HEADERS | Internet transport headers. |
SUBJECT | Message subject line. |
DISPLAY_TO | Formatted To recipients string. |
DISPLAY_CC | Formatted CC recipients string. |
DISPLAY_BCC | Formatted BCC recipients string. |
INTERNET_MESSAGE_ID | RFC 2822 Message-ID header. |
MESSAGE_FLAGS | MAPI message flags bitmask. |
INTERNET_CODEPAGE | Internet codepage for the message body. |
SENDER_NAME | Sender display name. |
SENDER_ADDRESS_TYPE | Sender address type (e.g., SMTP). |
SENDER_EMAIL_ADDRESS | Sender email address. |
MESSAGE_DELIVERY_TIME | Message delivery timestamp. |
STORE_SUPPORT_MASK | Message store support flags. |
BODY | Plain-text body. |
BODY_HTML | HTML body. |
DISPLAY_NAME | Display name of an object. |
ATTACH_METHOD | Attachment method (by value, by reference, etc.). |
ATTACH_DATA_BINARY | Attachment binary data. |
ATTACH_FILENAME | Short attachment filename. |
ATTACH_LONG_FILENAME | Long attachment filename. |
ATTACH_MIME_TAG | Attachment MIME type. |
ATTACH_CONTENT_ID | Attachment Content-ID for inline references. |
SCHEDULE_INFO_DELEGATE_NAMES | Scheduling delegate names. |
SCHEDULE_INFO_MONTHS_BUSY | Scheduling busy months. |
EXAMPLE_TAG_100A | Example custom property tag. |
EXAMPLE_TAG_101D | Example custom property tag (multi-value). |