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

NameTypeAccessDescription
namestrReadHolds the storage’s name as a string
rolestrReadIndicates the role or type identifier of the storage
clsidbytesReadStores the storage’s class identifier as raw bytes
state_bitsintReadContains state flag bits for the storage
creation_timeintReadRecords the creation timestamp of the storage
modified_timeintReadRecords the last modification timestamp of the storage
streamslist[MsgStream]ReadIs a list of MsgStream objects directly under this storage
storageslist["MsgStorage"]ReadIs a list of child MsgStorage objects contained in this storage
property_header_kindstr | NoneReadIndicates the kind of property header, if any
property_stream_headerPropertyStreamHeaderTopLevel | PropertyStreamHeaderSubobject | NoneReadHolds the top‑level or subobject property stream header, or None
fixed_length_propertiestuple[PropertyEntryFixedLength, ...]ReadIs a tuple of fixed‑length property entries for the storage
property_stream_parse_errorstr | NoneReadContains an error message if parsing the property stream failed

Methods

SignatureDescription
add_stream(stream: MsgStream)MsgStreamAdds 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 | NoneReturns the MsgStream with the given name or None if not found
find_storage(name: str)"MsgStorage" | NoneReturns the child MsgStorage with the given name or None if absent

See Also