MapiMessage

خلاصه ای

MapiMessage یک کلاس در Aspose.Email FOSS برای پایتون است.

شیء MSG سطح بالا قابل تغییر با پشتیبانی از تبدیل MS G و EmailMessage است.

این کلاس ۲۲ روش برای کار با MapiMessage در برنامه های پایتون را فراهم می کند. روش های موجود شامل: 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 روش اضافی. همه اعضای عمومی پس از نصب بسته Aspose.Email FOSS برای پایتون به هر برنامه ی Python دسترسی دارند. خواص: attachments, body, body_html, declared_attachment_count, declared_next_attachment_id, declared_next_recipient_id,، و 19 تا ديگه .

خواص

نام:نوع:Accessشرح:
msg_readerMsgReaderبخونید.خوانندهٔ msg را دریافت می‌کند.
validation_issuestuple[str, ...]بخونید.مشکلات اعتبارسنجی را دریافت می‌کند.
subject`strNone`خواندن/نوشتن
body`strNone`خواندن/نوشتن
message_class`strNone`خواندن/نوشتن
body_html`strNone`خواندن/نوشتن
unicode_stringsboolخواندن/نوشتندریافت یا تنظیم رشته‌های یونیکد.
propertiesMapiPropertyCollectionخواندن/نوشتندریافت یا تنظیم ویژگی‌ها.
recipientslist[MapiRecipient]خواندن/نوشتندریافت یا تنظیم گیرندگان.
attachmentslist[MapiAttachment]خواندن/نوشتندریافت یا تنظیم پیوست‌ها.
extra_streamslist[MsgStream]خواندن/نوشتندریافت یا تنظیم جریان‌های اضافی.
extra_storageslist[MsgStorage]خواندن/نوشتندریافت یا تنظیم ذخیره‌سازی‌های اضافی.
nameid_mapping_NamedPropertyMappingخواندن/نوشتندریافت یا تنظیم نگاشت nameid.
major_versionintخواندن/نوشتندریافت یا تنظیم نسخه اصلی.
minor_versionintخواندن/نوشتندریافت یا تنظیم نسخه جزئی.
transaction_signature_numberintخواندن/نوشتندریافت یا تنظیم شمارهٔ امضای تراکنش.
header_reserved_0bytesخواندن/نوشتندریافت یا تنظیم مقدار رزرو شده 0 هدر.
header_reserved_1bytesخواندن/نوشتندریافت یا تنظیم سرصفحه رزرو شده 1.
emit_store_support_maskboolخواندن/نوشتنمقدار دریافت یا تنظیم ماسک پشتیبانی ذخیره‌سازی emit.
emit_compatibility_defaultsboolخواندن/نوشتندریافت یا تنظیم مقادیر پیش‌فرض سازگاری انتشار.
preserve_declared_header_countsboolخواندن/نوشتندریافت یا تنظیم حفظ شمارش سرصفحه‌های اعلام‌شده.
declared_next_recipient_id`intNone`خواندن/نوشتن
declared_next_attachment_id`intNone`خواندن/نوشتن
declared_recipient_count`intNone`خواندن/نوشتن
declared_attachment_count`intNone`خواندن/نوشتن

روش ها

Signatureشرح:
`from_file(path: Pathstr, strict: bool)“MapiMessage”`
from_msg_document(document: MsgDocument)"MapiMessage"تماس از_msg_document در این MapiMessage نمونه.
from_email_message(email_message: EmailMessage, unicode_strings: bool)"MapiMessage"تماس از_email_message در این MapiMessage نمونه.
create(subject: str, body: str, unicode_strings: bool)"MapiMessage"تماس ها در این MapiMessage ایجاد می شوند.
iter_properties()Iterator[MapiProperty]iter_properties را در این MapiMessage صدا می کند.
iter_property_keys(storage_stream_id: int)Iterator[tuple[int, int]]در این MapiMessage کلید های iter_property را فرا می خواند.
`set_property(property_id: intCommonMessagePropertyId
`get_property(property_id: intCommonMessagePropertyId
`get_property_value(property_id: intCommonMessagePropertyId
`set_named_property(named_property: MapiNamedProperty, property_type: intPropertyTypeCode, value: Any, flags: int)MapiProperty`
`get_named_property(named_property: MapiNamedProperty, property_type: intNone)MapiProperty
`add_recipient(email_address: str, display_name: strNone, recipient_type: int)MapiRecipient`
`add_attachment(filename: str, data: bytes, mime_type: strNone, content_id: str
`add_embedded_message_attachment(message: “MapiMessage”, filename: strNone, mime_type: str
`save(path: Pathstr)`
to_bytes()bytesتماس با_بایت در این MapiMessage نمونه.
to_email_message()EmailMessageتماس با_email_message در این MapiMessage نمونه.
to_email_bytes()bytesتماس با_email_bytes در این MapiMessage نمونه.
to_email_string()strتماس با_email_string در این MapiMessage نمونه.
iter_attachments_info()Iterator[MapiAttachment]در این MapiMessage به iter_attachments_info می گویند.
close()در این مورد MapiMessage نزدیک می شود.
to_msg_document()MsgDocumentتماس با_msg_document در این MapiMessage نمونه.

همچنین ببینید:

 فارسی