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

NameTypeAccessDescription
cfb_readerCFBReaderReadGets the cfb reader.
storage_layoutStorageLayoutReadGets the storage layout.
strictboolReadGets the strict.
validation_issuesTuple[str, ...]ReadGets the validation issues.
PROPERTY_STREAM_HEADER_TOP_LEVEL_LAYOUTDict[str, Tuple[int, int]]ReadGets the property stream header top level layout.
PROPERTY_STREAM_HEADER_SUBOBJECT_LAYOUTDict[str, Tuple[int, int]]ReadGets the property stream header subobject layout.
PROPERTY_ENTRY_FIXED_LENGTH_LAYOUTDict[str, Tuple[int, int]]ReadGets the property entry fixed length layout.

méthodes

SignatureDescription
__init__(cfb_reader: CFBReader, strict: bool)Calls init on this MsgReader instance.
`from_file(path: Pathstr, 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
 Français