---
Product: Aspose.Email
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/email/python/storagelayout
---

# 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

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `recipient_storages` | `Tuple[DirectoryEntry, ...]` | Read | Gets the recipient storages. |
| `attachment_storages` | `Tuple[DirectoryEntry, ...]` | Read | Gets the attachment storages. |
| `named_property_mapping_storage` | `DirectoryEntry` | Read | Gets the named property mapping storage. |
| `top_level_property_stream` | `DirectoryEntry` | Read | Gets the top level property stream. |

## Examples

```python
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

- [Aspose.Email for Python — Enterprise API Reference](https://reference.aspose.com/email/python-net/)