PropertyStreamHeaderTopLevel

PropertyStreamHeaderTopLevel

Overview

PropertyStreamHeaderTopLevel is a class in Aspose.Email FOSS for Python.

Top-level property stream header containing next-id counters and counts for recipients and attachments.

Properties: attachment_count, next_attachment_id, next_recipient_id, recipient_count, reserved_0, reserved_1.

Properties

NameTypeAccessDescription
reserved_0bytesReadGets the reserved 0.
next_recipient_idintReadGets the next recipient id.
next_attachment_idintReadGets the next attachment id.
recipient_countintReadGets the recipient count.
attachment_countintReadGets the attachment count.
reserved_1bytesReadGets the reserved 1.

Examples

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)}")

See Also

 English