MapiMessage

Overview

MapiMessage là một lớp trong Aspose.Email FOSS cho Python.

Khả năng chuyển đổi đối tượng MSG cấp cao với hỗ trợ chuyển biến MS G và EmailMessage.

Khóa học này cung cấp 22 phương pháp để làm việc với các đối tượng MapiMessage trong các chương trình Python. Các phương pháp có sẵn bao gồm: 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,Và 10 phương pháp bổ sung. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Python nào sau khi cài đặt Aspose.Email FOSS cho gói Python. Tài sản : attachments, body, body_html, declared_attachment_count, declared_next_attachment_id, declared_next_recipient_id,19 và thêm.

Properties

NameTypeAccessDescription
msg_readerMsgReaderReadĐọc thêm về msg reader.
validation_issuestuple[str, ...]ReadNhận được các vấn đề xác nhận.
subject`strNone`Đọc / viết
body`strNone`Đọc / viết
message_class`strNone`Đọc / viết
body_html`strNone`Đọc / viết
unicode_stringsboolĐọc / viếtNhận hoặc đặt các dây unicode.
propertiesMapiPropertyCollectionĐọc / viếtNhận hoặc đặt tài sản.
recipientslist[MapiRecipient]Đọc / viếtNhận hoặc đặt người nhận.
attachmentslist[MapiAttachment]Đọc / viếtNhận hoặc đặt các phụ kiện.
extra_streamslist[MsgStream]Đọc / viếtNhận hoặc đặt các dòng chảy bổ sung.
extra_storageslist[MsgStorage]Đọc / viếtNhận hoặc đặt các lưu trữ bổ sung.
nameid_mapping_NamedPropertyMappingĐọc / viếtNhận hoặc đặt bản mapping namid.
major_versionintĐọc / viếtNhận hoặc đặt phiên bản chính.
minor_versionintĐọc / viếtNhận hoặc đặt phiên bản nhỏ hơn.
transaction_signature_numberintĐọc / viếtNhận hoặc đặt số chữ ký giao dịch.
header_reserved_0bytesĐọc / viếtNhận hoặc đặt tiêu đề được bảo lưu 0.
header_reserved_1bytesĐọc / viếtNhận hoặc đặt tiêu đề được bảo lưu 1.
emit_store_support_maskboolĐọc / viếtNhận hoặc đặt mặt nạ hỗ trợ cửa hàng phát hành.
emit_compatibility_defaultsboolĐọc / viếtNhận hoặc đặt các lỗi tương thích phát hành.
preserve_declared_header_countsboolĐọc / viếtNhận hoặc đặt số tiêu đề được tuyên bố bảo tồn.
declared_next_recipient_id`intNone`Đọc / viết
declared_next_attachment_id`intNone`Đọc / viết
declared_recipient_count`intNone`Đọc / viết
declared_attachment_count`intNone`Đọc / viết

Methods

SignatureDescription
`from_file(path: Pathstr, strict: bool)“MapiMessage”`
from_msg_document(document: MsgDocument)"MapiMessage"Gọi từ_msg_document trên trường hợp này MapiMessage.
from_email_message(email_message: EmailMessage, unicode_strings: bool)"MapiMessage"Gọi từ_email_message trên trường hợp này MapiMessage.
create(subject: str, body: str, unicode_strings: bool)"MapiMessage"Các cuộc gọi được tạo trên trường hợp MapiMessage này.
iter_properties()Iterator[MapiProperty]Nhấn iter_properties trên trường hợp MapiMessage này.
iter_property_keys(storage_stream_id: int)Iterator[tuple[int, int]]Nhấn iter_property_keys trên trường hợp MapiMessage này.
`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()bytesCall to_bytes trên trường hợp MapiMessage này.
to_email_message()EmailMessageGọi_email_message trên trường hợp này MapiMessage.
to_email_bytes()bytesGọi_email_bytes trên trường hợp này.
to_email_string()strGọi_email_string trên trường hợp này.
iter_attachments_info()Iterator[MapiAttachment]Nhờ iter_attachments_info vào trường hợp này.
close()Gọi gần vào trường hợp MapiMessage này.
to_msg_document()MsgDocumentGọi_msg_document trên ví dụ này MapiMessage.

See Also

 Tiếng Việt