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
| Name | Type | Access | Description |
|---|---|---|---|
root | MsgStorage | Read | Provides the top-level MsgStorage of the document |
major_version | int | Read | Returns the document’s major version number |
minor_version | int | Read | Returns the document’s minor version number |
transaction_signature_number | int | Read | Returns the document’s transaction signature number |
strict | bool | Read | Indicates whether the document enforces strict parsing rules |
Methods
| Signature | Description |
|---|---|
from_reader(reader: MsgReader) → "MsgDocument" | Creates a MsgDocument from a MsgReader instance |
build_storage(entry: DirectoryEntry, role: str) → MsgStorage | Constructs 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() → CFBDocument | Converts the MsgDocument into a CFBDocument |