StorageLayout

Overview

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

Naming and containment rules for recipient, attachment, embedded message, and nameid storages.

Properties: attachment_storages, named_property_mapping_storage, recipient_storages, top_level_property_stream.

Properties

NameTypeAccessDescription
recipient_storagesTuple[DirectoryEntry, ...]ReadGets the recipient storages.
attachment_storagesTuple[DirectoryEntry, ...]ReadGets the attachment storages.
named_property_mapping_storageDirectoryEntryReadGets the named property mapping storage.
top_level_property_streamDirectoryEntryReadGets the top level property stream.

Examples

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

See Also

 English