PropertyStreamHeaderTopLevel

PropertyStreamHeaderTopLevel

Overview

PropertyStreamHeaderTopLevel holds the decoded 32-byte preamble of the __properties_version1.0 stream at the root storage of a MSG file. The header records the next available recipient and attachment IDs, the current recipient and attachment counts, and reserved padding fields. It is returned as the first element of the two-tuple produced by MsgReader.parse_message_property_stream().

from aspose.email_foss.msg import MsgReader

with MsgReader.from_file("message.msg") as reader:
    header, entries = reader.parse_message_property_stream()
    print(f"recipients={header.recipient_count}, attachments={header.attachment_count}")
    print(f"next_recipient_id={header.next_recipient_id}")
    print(f"property entries={len(entries)}")

Properties

PropertyTypeDescription
reserved_0bytesFirst 8 reserved bytes of the property stream header.
next_recipient_idintThe next ID that will be assigned to a new recipient subobject.
next_attachment_idintThe next ID that will be assigned to a new attachment subobject.
recipient_countintNumber of recipient storages currently present in the MSG.
attachment_countintNumber of attachment storages currently present in the MSG.
reserved_1bytesTrailing reserved bytes of the property stream header.

See Also