VertexDeclaration{/i:
Približni podaci
MapiMessage je klasa u Aspose.Email za Python.
U ovom slučaju, mora se primjenjivati na sve vrste objekata.
Oznake i značajke
| Izvršni datum: | Iznos: | Prihvat | Opisivanje |
|---|---|---|---|
msg_reader | MsgReader | Čitaj. | Osigurava pristup osnovnom MsgReader koji se koristi za ovu poruku. |
validation_issues | tuple[str, ...] | Čitaj. | Sadrži niz redova koji opisuju sve probleme potvrđivanja. |
subject | `str | None` | Čitaj. |
body | `str | None` | Čitaj. |
message_class | `str | None` | Čitaj. |
body_html | `str | None` | Čitaj. |
unicode_strings | bool | Čitaj. | Pokazuje da li su svojstva niza pohranjena kao Unicode. |
properties | MapiPropertyCollection | Čitaj. | Je zbirka svih MapiProperty objekata u porukama. |
recipients | list[MapiRecipient] | Čitaj. | Je popis MapiRecipient objekata koji predstavljaju primatelje poruke. |
attachments | list[MapiAttachment] | Čitaj. | Je popis MapiAttachment objekata priložen porukama. |
extra_streams | list[MsgStream] | Čitaj. | Sadrži dodatne MsgStream objekte prisutne u MSG datoteki |
extra_storages | list[MsgStorage] | Čitaj. | Sadrži dodatne MsgStorage objekte prisutne u MSG datoteki |
nameid_mapping | _NamedPropertyMapping | Čitaj. | Osigurava mapiranje za imenovane ID-ove svojstva koji se koriste u porukama. |
major_version | int | Čitaj. | Čuvanje glavnog broja verzije MSG formata |
minor_version | int | Čitaj. | Čuvanje broja manjeg oblika MSG formata |
transaction_signature_number | int | Čitaj. | U ovom je članku naveden broj potpisa koji se koristi za praćenje transakcija. |
header_reserved_0 | bytes | Čitaj. | Sadrži prvi blok rezerviranih zaglavlja bajta. |
header_reserved_1 | bytes | Čitaj. | Sadrži drugi blok rezerviranih zaglavlja bajta. |
emit_store_support_mask | bool | Čitaj. | Prebaci emisiju maske za podršku pri pisanju |
emit_compatibility_defaults | bool | Čitaj. | Kontrolisanje je li emitirana neispunjiva pravila kompatibilnosti. |
preserve_declared_header_counts | bool | Čitaj. | Naziv oznake za označavanje. |
declared_next_recipient_id | `int | None` | Čitaj. |
declared_next_attachment_id | `int | None` | Čitaj. |
declared_recipient_count | `int | None` | Čitaj. |
declared_attachment_count | `int | None` | Čitaj. |
Metoda za primjenu
| Potpis | Opisivanje |
|---|---|
| `from_file(path: Path | str, strict: bool)→“MapiMessage”` |
from_msg_document(document: MsgDocument) → "MapiMessage" | Stvara MapiMessage iz postojećeg MsgDocument |
from_email_message(email_message: EmailMessage, unicode_strings: bool) → "MapiMessage" | Pretvara EmailMessage u MapiMessage, opciono koristeći Unicode nizove. |
create(subject: str, body: str, unicode_strings: bool) → "MapiMessage" | creates a new Outlook‑compatible message object that can be modified withset_property, add_recipient, add_attachment, and saved with Spasiti put |
iter_properties() → Iterator[MapiProperty] | Iterira se na svim MapiProperty objektima u porukama. |
iter_property_keys(storage_stream_id: int) → Iterator[tuple[int, int]] | Iznos (property_id, storage_stream_d) tuples za tok skladištenja |
| `set_property(property_id: int | CommonMessagePropertyId |
| `get_property(property_id: int | CommonMessagePropertyId |
| `get_property_value(property_id: int | CommonMessagePropertyId |
| `set_named_property(named_property: MapiNamedProperty, property_type: int | PropertyTypeCode, value: Any, flags: int)→MapiProperty` |
| `get_named_property(named_property: MapiNamedProperty, property_type: int | None)→MapiProperty |
| `add_recipient(email_address: str, display_name: str | None, recipient_type: int)→MapiRecipient` |
| `add_attachment(filename: str, data: bytes, mime_type: str | None, content_id: str |
| `add_embedded_message_attachment(message: “MapiMessage”, filename: str | None, mime_type: str |
| `save(path: Path | str)` |
to_bytes() → bytes | Serijalizira poruku u MSG format i vraća bajtove. |
to_email_message() → EmailMessage | Pretvara MSG model u standardni objekt knjižnice email.message.EmailMessage |
to_email_bytes() → bytes | Vrati poruku kao sirove .eml bajtova |
to_email_string() → str | Vrati poruku kao niz u .eml formatu |
iter_attachments_info() → Iterator[MapiAttachment] | Iterira se na svim predmetima priloga u porukama. |
close() | Oslobađa sve resurse koje drži instanciranje poruke. |
to_msg_document() → MsgDocument | Preobražava poruku visoke razine u poruke niske razini MsgDocument |