Overview
MapiProperty is the fundamental unit of MAPI data storage. Every piece of structured data in an MSG file — subject, body, timestamps, sender information — is stored as a MapiProperty. The property_tag combines the 16-bit property ID and 16-bit type code into a single 32-bit integer. Instances are returned by MapiMessage.get_property(), set_property(), and the equivalent methods on MapiRecipient and MapiAttachment.
Properties
| Name | Type | Access | Description |
|---|
property_tag | int | read-only | Composite tag computed as (property_id << 16) | property_type. |
Key Fields
| Name | Type | Description |
|---|
property_id | int | 16-bit MAPI property identifier. |
property_type | int | 16-bit MAPI property type code (see PropertyTypeCode). |
value | Any | Decoded Python value (string, int, datetime, bytes, etc.). |
flags | int | MAPI property flags bitmask. |
named | MapiNamedProperty | None | Named property descriptor, if this is a named property. |
Methods
| Signature | Description |
|---|
clone() -> MapiProperty | Create a deep copy of this property. |
clear_raw() -> None | Clear any cached raw byte representation. |
See Also