MsgDocument

Overview

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

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

Properties

NameTypeAccessDescription
rootMsgStorageReadProvides the top-level MsgStorage of the document
major_versionintReadReturns the document’s major version number
minor_versionintReadReturns the document’s minor version number
transaction_signature_numberintReadReturns the document’s transaction signature number
strictboolReadIndicates whether the document enforces strict parsing rules

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