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.
| Property | Type | Description |
|---|---|---|
recipient_storages | Tuple[DirectoryEntry, ...] | Ordered tuple of directory entries for each recipient subobject storage (named __recip_version1.0_#XXXXXXXX). |
attachment_storages | Tuple[DirectoryEntry, ...] | Ordered tuple of directory entries for each attachment subobject storage (named __attach_version1.0_#XXXXXXXX). |
named_property_mapping_storage | DirectoryEntry | Directory entry for the __nameid_version1.0 storage that holds the named property mapping streams. |
top_level_property_stream | DirectoryEntry | Directory entry for the root-level __properties_version1.0 stream. |