MsgStorage
Overview
MsgStorage is a class in Aspose.Email FOSS for Python.
Mutable MSG storage node with role classification and parsed property-stream metadata.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | str | Read | Holds the storage’s name as a string |
role | str | Read | Indicates the role or type identifier of the storage |
clsid | bytes | Read | Stores the storage’s class identifier as raw bytes |
state_bits | int | Read | Contains state flag bits for the storage |
creation_time | int | Read | Records the creation timestamp of the storage |
modified_time | int | Read | Records the last modification timestamp of the storage |
streams | list[MsgStream] | Read | Is a list of MsgStream objects directly under this storage |
storages | list["MsgStorage"] | Read | Is a list of child MsgStorage objects contained in this storage |
property_header_kind | str | None | Read | Indicates the kind of property header, if any |
property_stream_header | PropertyStreamHeaderTopLevel | PropertyStreamHeaderSubobject | None | Read | Holds the top‑level or subobject property stream header, or None |
fixed_length_properties | tuple[PropertyEntryFixedLength, ...] | Read | Is a tuple of fixed‑length property entries for the storage |
property_stream_parse_error | str | None | Read | Contains an error message if parsing the property stream failed |
Methods
| Signature | Description |
|---|---|
add_stream(stream: MsgStream) → MsgStream | Adds a MsgStream to this storage and returns the added stream |
add_storage(storage: "MsgStorage") → "MsgStorage" | Adds a child MsgStorage to this storage and returns it |
iter_streams() → Iterator[MsgStream] | Returns an iterator over all MsgStream objects in this storage |
iter_storages() → Iterator["MsgStorage"] | Returns an iterator over all child MsgStorage objects |
find_stream(name: str) → MsgStream | None | Returns the MsgStream with the given name or None if not found |
find_storage(name: str) → "MsgStorage" | None | Returns the child MsgStorage with the given name or None if absent |