MapiMessage

סקירה כללית

MapiMessage הוא שיעור ב Aspose.Email FOSS עבור Python.

• Mutable MSG Object ברמה גבוהה עם תמיכה ב-MSG ו- EmailMessage Conversion.

שיעור זה מספק 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 לאחר התקנת Aspose.Email FOSS עבור חבילת Python. רכוש : attachments, body, body_html, declared_attachment_count, declared_next_attachment_id, declared_next_recipient_id,19 ועוד.

מאפיינים

שםסוגגישהתיאור
msg_readerMsgReaderקראוקבל את הקורא של MSG.
validation_issuestuple[str, ...]קראויש בעיות של אימות.
subject`strNone`קרא / כתיבה
body`strNone`קרא / כתיבה
message_class`strNone`קרא / כתיבה
body_html`strNone`קרא / כתיבה
unicode_stringsboolקרא / כתיבהמקבל או מונח את הקווים של Unicode.
propertiesMapiPropertyCollectionקרא / כתיבהמקבל או מטיל את הנכסים.
recipientslist[MapiRecipient]קרא / כתיבהמקבלים או מחזיקים את המועמדים.
attachmentslist[MapiAttachment]קרא / כתיבהמקבל או מפרט את הקבצים.
extra_streamslist[MsgStream]קרא / כתיבהמקבל או מטיל את הזרמים נוספים.
extra_storageslist[MsgStorage]קרא / כתיבהמקבל או מטיל את אחסון נוסף.
nameid_mapping_NamedPropertyMappingקרא / כתיבהמקבל או מפרט את המפה הנקראת.
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`קרא / כתיבה

שיטות

חתימהתיאור
`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קוראים ל_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]קרא iter_attachments_info על הדוגמה הזו MapiMessage.
close()צלצול קרוב על האינדקס הזה MapiMessage.
to_msg_document() → MsgDocumentהתקשר ל_msg_document על האינדקס הזה MapiMessage.

ראה גם

 עברית