MsgStorage

Overview

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

Mutable MSG storage node with role classification and parsed property-stream metadata.

This class provides 6 methods for working with MsgStorage objects in Python programs. Available methods include: add_storage, add_stream, find_storage, find_stream, iter_storages, iter_streams. All public members are accessible to any Python application after installing the Aspose.Email FOSS for Python package. Properties: clsid, creation_time, fixed_length_properties, modified_time, name, property_header_kind, and 6 more.

Properties

NameTypeAccessDescription
namestrRead/WriteGets or sets the name.
rolestrRead/WriteGets or sets the role.
clsidbytesRead/WriteGets or sets the clsid.
state_bitsintRead/WriteGets or sets the state bits.
creation_timeintRead/WriteGets or sets the creation time.
modified_timeintRead/WriteGets or sets the modified time.
streamslist[MsgStream]Read/WriteGets or sets the streams.
storageslist["MsgStorage"]Read/WriteGets or sets the storages.
property_header_kindstr | NoneRead/WriteGets or sets the property header kind.
property_stream_headerPropertyStreamHeaderTopLevel | PropertyStreamHeaderSubobject | NoneRead/WriteGets or sets the property stream header.
fixed_length_propertiestuple[PropertyEntryFixedLength, ...]Read/WriteGets or sets the fixed length properties.
property_stream_parse_errorstr | NoneRead/WriteGets or sets the property stream parse error.

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