StorageLayout

Overview

StorageLayout is populated during MsgReader construction by scanning the root storage of a MSG file. It collects directory entries for the named property mapping storage, the top-level property stream, and all recipient and attachment child storages into immutable tuples, giving callers a single point of access to the structural skeleton of the file without requiring a manual directory walk.

from aspose.email_foss.msg import MsgReader

with MsgReader.from_file("message.msg") as reader:
    layout = reader.storage_layout
    print(f"named_prop_mapping: {layout.named_property_mapping_storage.name}")
    print(f"recipients: {len(layout.recipient_storages)}")
    print(f"attachments: {len(layout.attachment_storages)}")

Properties

All properties are read-only.

PropertyTypeDescription
recipient_storagesTuple[DirectoryEntry, ...]Ordered tuple of directory entries for each recipient subobject storage (named __recip_version1.0_#XXXXXXXX).
attachment_storagesTuple[DirectoryEntry, ...]Ordered tuple of directory entries for each attachment subobject storage (named __attach_version1.0_#XXXXXXXX).
named_property_mapping_storageDirectoryEntryDirectory entry for the __nameid_version1.0 storage that holds the named property mapping streams.
top_level_property_streamDirectoryEntryDirectory entry for the root-level __properties_version1.0 stream.

See Also