MsgReader
Vue de l’ensemble
‘MsgReader’ est une classe dans Aspose.Email FOSS pour Python.
Normative de niveau supérieur des exigences de conteneurs et de flux MSG pour le traversage du conteneur.
Cette classe fournit 10 méthodes pour travailler avec les objets MsgReader dans des programmes Python. Les méthodologies disponibles comprennent: __init__, close , from_file ; iter_attachment_stores; ter_recipient_storages : ‘iter-top_level_fixed_length_properties: 'parse_message_power_stream. parse _subobject_prower., parce_subobjecte_sourcement.. tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation de l’Aspose.Email FOSS pour le package PyThone. Properces : PROPERTY_RELIGE_LEGE-LENGE, PARSE_SUBJET_PROTT_STER_TRAT_PLAY_PORTS, parSE
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
cfb_reader | CFBReader | Read | Gets the cfb reader. |
storage_layout | StorageLayout | Read | Gets the storage layout. |
strict | bool | Read | Gets the strict. |
validation_issues | Tuple[str, ...] | Read | Gets the validation issues. |
PROPERTY_STREAM_HEADER_TOP_LEVEL_LAYOUT | Dict[str, Tuple[int, int]] | Read | Gets the property stream header top level layout. |
PROPERTY_STREAM_HEADER_SUBOBJECT_LAYOUT | Dict[str, Tuple[int, int]] | Read | Gets the property stream header subobject layout. |
PROPERTY_ENTRY_FIXED_LENGTH_LAYOUT | Dict[str, Tuple[int, int]] | Read | Gets the property entry fixed length layout. |
méthodes
| Signature | Description |
|---|---|
__init__(cfb_reader: CFBReader, strict: bool) | Calls init on this MsgReader instance. |
| `from_file(path: Path | str, strict: bool)→“MsgReader”` |
close() | Releases resources associated with the underlying CFB container |
iter_top_level_fixed_length_properties() → Iterator[PropertyEntryFixedLength] | Yields fixed‑length property entries from the top‑level property stream |
iter_recipient_storages() → Iterator[DirectoryEntry] | Iterates over directory entries that store recipient data |
iter_attachment_storages() → Iterator[DirectoryEntry] | Iterates over directory entries that store attachment data |
parse_message_property_stream(storage_stream_id: int) → Tuple[PropertyStreamHeaderTopLevel, List[PropertyEntryFixedLength]] | Read the property stream in the top level or an embedded-message storage. |
parse_subobject_property_stream(storage_stream_id: int) → Tuple[PropertyStreamHeaderSubobject, List[PropertyEntryFixedLength]] | Read the property stream in recipient/attachment storage and decode fixed-length entries. |
parse_top_level_property_stream(data: bytes) → Tuple[PropertyStreamHeaderTopLevel, List[PropertyEntryFixedLength]] | Decode top-level property stream header and fixed-length entries. |
parse_subobject_property_stream_data(data: bytes) → Tuple[PropertyStreamHeaderSubobject, List[PropertyEntryFixedLength]] | Decode recipient/attachment property stream header and fixed-length entries. |
Voir aussi
- Aspose.Email pour Python — Enterprise API Reference