MapiMessage
Overview
MapiMessage यह एक क्लास है Aspose.Email FOSS के लिए Python।.
MSG और EmailMessage रूपांतरण समर्थन के साथ उच्च स्तर के एमएसजी ऑब्जेक्ट को बदल सकते हैं।.
इस कक्षा में पायथन प्रोग्रामों में MapiMessage वस्तुओं के साथ काम करने के लिए 22 तरीके प्रदान किए जाते हैं।. उपलब्ध तरीकों में शामिल हैं: add_attachment, add_embedded_message_attachment, add_recipient, close, create, from_email_message, from_file, from_msg_document, get_named_property, get_property, get_property_value, iter_attachments_info,और 10 अतिरिक्त तरीके।. सभी सार्वजनिक सदस्य किसी भी Python अनुप्रयोग के लिए उपलब्ध हैं Aspose.Email FOSS को स्थापित करने के बाद Python पैकेज।. संपत्ति : attachments, body, body_html, declared_attachment_count, declared_next_attachment_id, declared_next_recipient_id,और 19 से अधिक।.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
msg_reader | MsgReader | Read | एमएसजी रीडर को प्राप्त करें।. |
validation_issues | tuple[str, ...] | Read | वैधता के मुद्दों को समझें।. |
subject | `str | None` | पढ़ना / लिखना |
body | `str | None` | पढ़ना / लिखना |
message_class | `str | None` | पढ़ना / लिखना |
body_html | `str | None` | पढ़ना / लिखना |
unicode_strings | bool | पढ़ना / लिखना | एकल कोड तारों को प्राप्त या स्थापित करें।. |
properties | MapiPropertyCollection | पढ़ना / लिखना | संपत्ति प्राप्त करें या स्थापित करें।. |
recipients | list[MapiRecipient] | पढ़ना / लिखना | प्राप्तकर्ताओं को प्राप्त या स्थापित करें।. |
attachments | list[MapiAttachment] | पढ़ना / लिखना | या तो वे कटौती करते हैं या कर देते हैं।. |
extra_streams | list[MsgStream] | पढ़ना / लिखना | अतिरिक्त प्रवाह प्राप्त करें या स्थापित करें।. |
extra_storages | list[MsgStorage] | पढ़ना / लिखना | अतिरिक्त भंडारण प्राप्त करें या स्थापित करें।. |
nameid_mapping | _NamedPropertyMapping | पढ़ना / लिखना | नामित मैपिंग प्राप्त करें या स्थापित करें।. |
major_version | int | पढ़ना / लिखना | यह मुख्य संस्करण प्राप्त करता है या स्थापित करता हैं।. |
minor_version | int | पढ़ना / लिखना | छोटे संस्करण प्राप्त करें या सेट करें।. |
transaction_signature_number | int | पढ़ना / लिखना | लेनदेन पर हस्ताक्षर संख्या प्राप्त करें या सेट करें।. |
header_reserved_0 | bytes | पढ़ना / लिखना | 0 से आरक्षित शीर्षक प्राप्त करें या रखें।. |
header_reserved_1 | bytes | पढ़ना / लिखना | 1. शीर्षक को प्राप्त करें या रजिस्टर करें।. |
emit_store_support_mask | bool | पढ़ना / लिखना | इसे प्राप्त करें या स्टोर समर्थन मास्क को स्थापित करें।. |
emit_compatibility_defaults | bool | पढ़ना / लिखना | यह संभावित अनुकूलन डिफ़ॉल्ट प्राप्त करता है या स्थापित करता हैं।. |
preserve_declared_header_counts | bool | पढ़ना / लिखना | यह प्राप्त करता है या संरक्षित घोषित शीर्षक गिनती सेट करता हैं।. |
declared_next_recipient_id | `int | None` | पढ़ना / लिखना |
declared_next_attachment_id | `int | None` | पढ़ना / लिखना |
declared_recipient_count | `int | None` | पढ़ना / लिखना |
declared_attachment_count | `int | None` | पढ़ना / लिखना |
Methods
| Signature | Description |
|---|---|
| `from_file(path: Path | str, strict: bool)→“MapiMessage”` |
from_msg_document(document: MsgDocument) → "MapiMessage" | इस MapiMessage उदाहरण पर_msg_document से कॉल करें।. |
from_email_message(email_message: EmailMessage, unicode_strings: bool) → "MapiMessage" | इस MapiMessage उदाहरण पर_email_message से कॉल करें।. |
create(subject: str, body: str, unicode_strings: bool) → "MapiMessage" | इस MapiMessage उदाहरण पर कॉल बनाए जाते हैं।. |
iter_properties() → Iterator[MapiProperty] | इस MapiMessage उदाहरण पर iter_properties को कॉल करें।. |
iter_property_keys(storage_stream_id: int) → Iterator[tuple[int, int]] | इस MapiMessage उदाहरण पर iter_property_keys कॉल करें।. |
| `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 | इस MapiMessage उदाहरण पर_bytes को कॉल करें।. |
to_email_message() → EmailMessage | इस MapiMessage उदाहरण पर_email_message को कॉल करें।. |
to_email_bytes() → bytes | इस MapiMessage उदाहरण पर_email_bytes को कॉल करें।. |
to_email_string() → str | इस MapiMessage उदाहरण पर_email_string को कॉल करें।. |
iter_attachments_info() → Iterator[MapiAttachment] | इस MapiMessage उदाहरण पर iter_attachments_info कॉल करें।. |
close() | इस MapiMessage उदाहरण पर निकट कॉल करें।. |
to_msg_document() → MsgDocument | इस MapiMessage उदाहरण पर_msg_document को कॉल करें।. |