MsgDocument

Overview

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

Mutable MSG document model that can be serialized through the CFB writer.

This class provides 4 methods for working with MsgDocument objects in Python programs. Available methods include: build_storage, from_file, from_reader, to_cfb_document. All public members are accessible to any Python application after installing the Aspose.Email FOSS for Python package. Properties: major_version, minor_version, root, strict, transaction_signature_number.

Properties

NameTypeAccessDescription
rootMsgStorageRead/WriteGets or sets the root.
major_versionintRead/WriteGets or sets the major version.
minor_versionintRead/WriteGets or sets the minor version.
transaction_signature_numberintRead/WriteGets or sets the transaction signature number.
strictboolRead/WriteGets or sets the strict.

Methods

SignatureDescription
from_reader(reader: MsgReader)"MsgDocument"Creates a MsgDocument from a MsgReader instance
build_storage(entry: DirectoryEntry, role: str)MsgStorageConstructs a MsgStorage from a DirectoryEntry and role string
from_file(path: Path | str, strict: bool)"MsgDocument"Loads a MsgDocument from a file path, optionally using strict mode
to_cfb_document()CFBDocumentConverts the MsgDocument into a CFBDocument

See Also