MapiMessage

Overview

MapiMessage เป็นคลาสใน Aspose.Email FOSS สําหรับ Python.

อัตถุ MSG ระดับสูงที่สามารถเปลี่ยนแปลงได้ พร้อมกับการสนับสนุนการแปลง MS G และ EmailMessage.

หมวดนี้ให้ 22 วิธีในการทํางานกับวัตถุ MapiMessage ในโปรแกรม Python. วิธีการที่ใช้ได้แก่: 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 ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Python. คุณสมบัติ: attachments, body, body_html, declared_attachment_count, declared_next_attachment_id, declared_next_recipient_id,และอีก 19 คน.

Properties

NameTypeAccessDescription
msg_readerMsgReaderReadได้รับเครื่องอ่านข้อความ.
validation_issuestuple[str, ...]Readได้รับปัญหาการยืนยันความเป็นจริง.
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_compatibility_defaultsboolอ่าน/เขียนได้รับหรือกําหนดค่าคอมพัทลุงของการส่งออก.
preserve_declared_header_countsboolอ่าน/เขียนได้หรือกําหนดการนับหัวข้อที่ประกาศไว้ให้รักษา.
declared_next_recipient_id`intNone`อ่าน/เขียน
declared_next_attachment_id`intNone`อ่าน/เขียน
declared_recipient_count`intNone`อ่าน/เขียน
declared_attachment_count`intNone`อ่าน/เขียน

Methods

SignatureDescription
`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]]เรียก iter_property_keys ในตัวอย่าง MapiMessage นี้.
`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เรียก to_bytes ในตัวอย่าง MapiMessage นี้.
to_email_message()EmailMessageโทรไป_email_message ในตัวอย่าง MapiMessage นี้.
to_email_bytes()bytesโทรไป_email_bytes ในตัวอย่าง MapiMessage นี้.
to_email_string()strเรียก to_email_string ในตัวอย่าง MapiMessage นี้.
iter_attachments_info()Iterator[MapiAttachment]เรียก iter_attachments_info ในตัวอย่าง MapiMessage นี้.
close()เรียกใกล้ในตัวอย่างนี้ MapiMessage.
to_msg_document()MsgDocumentเรียก to_msg_document ในตัวอย่าง MapiMessage นี้.

See Also

 ภาษาไทย