CommonMessagePropertyId
Overview
CommonMessagePropertyId is an IntEnum that enumerates the MAPI property IDs most frequently encountered in MSG files. Because it subclasses int, any member can be used wherever a raw integer property ID is expected. Passing a CommonMessagePropertyId member to MapiMessage.set_property() or get_property() eliminates magic-number literals and makes call sites self-documenting.
from aspose.email_foss import msg
message = msg.MapiMessage.create("Test", "Body")
message.set_property(msg.CommonMessagePropertyId.SUBJECT, "Updated Subject")
prop = message.get_property(msg.CommonMessagePropertyId.BODY)
if prop:
print(prop.value)Values
| Value | Hex | Description |
|---|---|---|
MESSAGE_CLASS | 0x001A | MAPI message class string (e.g., IPM.Note). |
TRANSPORT_MESSAGE_HEADERS | 0x007D | Internet transport headers. |
SUBJECT | 0x0037 | Message subject line. |
DISPLAY_TO | 0x0E04 | Formatted To recipients string. |
DISPLAY_CC | 0x0E03 | Formatted CC recipients string. |
DISPLAY_BCC | 0x0E02 | Formatted BCC recipients string. |
INTERNET_MESSAGE_ID | 0x1035 | RFC 2822 Message-ID header. |
MESSAGE_FLAGS | 0x0E07 | MAPI message flags bitmask. |
INTERNET_CODEPAGE | 0x3FDE | Internet codepage for the message body. |
SENDER_NAME | 0x0C1A | Sender display name. |
SENDER_ADDRESS_TYPE | 0x0C1E | Sender address type (e.g., SMTP). |
SENDER_EMAIL_ADDRESS | 0x0C1F | Sender email address. |
MESSAGE_DELIVERY_TIME | 0x0E06 | Message delivery timestamp. |
STORE_SUPPORT_MASK | 0x340D | Message store support flags. |
BODY | 0x1000 | Plain-text body. |
BODY_HTML | 0x1013 | HTML body. |
DISPLAY_NAME | 0x3001 | Display name of an object. |
ATTACH_METHOD | 0x3705 | Attachment method (by value, by reference, etc.). |
ATTACH_DATA_BINARY | 0x3701 | Attachment binary data. |
ATTACH_FILENAME | 0x3704 | Short attachment filename. |
ATTACH_LONG_FILENAME | 0x3707 | Long attachment filename. |
ATTACH_MIME_TAG | 0x370E | Attachment MIME type. |
ATTACH_CONTENT_ID | 0x3712 | Attachment Content-ID for inline references. |
SCHEDULE_INFO_DELEGATE_NAMES | 0x6844 | Scheduling delegate names. |
SCHEDULE_INFO_MONTHS_BUSY | 0x6853 | Scheduling busy months. |
EXAMPLE_TAG_100A | 0x100A | Example custom property tag. |
EXAMPLE_TAG_101D | 0x101D | Example custom property tag (multi-value). |