CommonMessagePropertyId

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

ValueHexDescription
MESSAGE_CLASS0x001AMAPI message class string (e.g., IPM.Note).
TRANSPORT_MESSAGE_HEADERS0x007DInternet transport headers.
SUBJECT0x0037Message subject line.
DISPLAY_TO0x0E04Formatted To recipients string.
DISPLAY_CC0x0E03Formatted CC recipients string.
DISPLAY_BCC0x0E02Formatted BCC recipients string.
INTERNET_MESSAGE_ID0x1035RFC 2822 Message-ID header.
MESSAGE_FLAGS0x0E07MAPI message flags bitmask.
INTERNET_CODEPAGE0x3FDEInternet codepage for the message body.
SENDER_NAME0x0C1ASender display name.
SENDER_ADDRESS_TYPE0x0C1ESender address type (e.g., SMTP).
SENDER_EMAIL_ADDRESS0x0C1FSender email address.
MESSAGE_DELIVERY_TIME0x0E06Message delivery timestamp.
STORE_SUPPORT_MASK0x340DMessage store support flags.
BODY0x1000Plain-text body.
BODY_HTML0x1013HTML body.
DISPLAY_NAME0x3001Display name of an object.
ATTACH_METHOD0x3705Attachment method (by value, by reference, etc.).
ATTACH_DATA_BINARY0x3701Attachment binary data.
ATTACH_FILENAME0x3704Short attachment filename.
ATTACH_LONG_FILENAME0x3707Long attachment filename.
ATTACH_MIME_TAG0x370EAttachment MIME type.
ATTACH_CONTENT_ID0x3712Attachment Content-ID for inline references.
SCHEDULE_INFO_DELEGATE_NAMES0x6844Scheduling delegate names.
SCHEDULE_INFO_MONTHS_BUSY0x6853Scheduling busy months.
EXAMPLE_TAG_100A0x100AExample custom property tag.
EXAMPLE_TAG_101D0x101DExample custom property tag (multi-value).

See Also