MapiMessage

개요

MapiMessage은(는) Aspose.Email FOSS에서 Python을(를) 위해 제공되는 클래스입니다.

MSG와 EmailMessage 변환을 지원하는 가변 고수준 MSG 객체.

이 클래스는 Python 프로그램에서 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개의 메서드가 포함됩니다. Aspose.Email FOSS for Python 패키지를 설치한 후 모든 Python 애플리케이션에서 모든 public 멤버에 접근할 수 있습니다. 속성: 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읽기/쓰기nameid 매핑을 가져오거나 설정합니다.
major_versionint읽기/쓰기주 버전을 가져오거나 설정합니다.
minor_versionint읽기/쓰기마이너 버전을 가져오거나 설정합니다.
transaction_signature_numberint읽기/쓰기거래 서명 번호를 가져오거나 설정합니다.
header_reserved_0bytes읽기/쓰기헤더 예약 0을 가져오거나 설정합니다.
header_reserved_1bytes읽기/쓰기헤더 예약 1을 가져오거나 설정합니다.
emit_store_support_maskbool읽기/쓰기Emit store 지원 마스크를 가져오거나 설정합니다.
emit_compatibility_defaultsbool읽기/쓰기emit 호환성 기본값을 가져오거나 설정합니다.
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"이 MapiMessage 인스턴스에서 from_msg_document(document)를 호출합니다.
from_email_message(email_message: EmailMessage, unicode_strings: bool) → "MapiMessage"이 MapiMessage 인스턴스에서 from_email_message(email_message, unicode_strings)를 호출합니다.
create(subject: str, body: str, unicode_strings: bool) → "MapiMessage"이 MapiMessage 인스턴스에서 create(subject, body, unicode_strings)를 호출합니다.
iter_properties() → Iterator[MapiProperty]이 MapiMessage 인스턴스에서 iter_properties를 호출합니다.
iter_property_keys(storage_stream_id: int) → Iterator[tuple[int, int]]이 MapiMessage 인스턴스에서 iter_property_keys(storage_stream_id)를 호출합니다.
`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_bytes을 호출합니다.
to_email_message() → EmailMessage이 MapiMessage 인스턴스에서 to_email_message을 호출합니다.
to_email_bytes() → bytes이 MapiMessage 인스턴스에서 to_email_bytes를 호출합니다.
to_email_string() → str이 MapiMessage 인스턴스에서 to_email_string를 호출합니다.
iter_attachments_info() → Iterator[MapiAttachment]이 MapiMessage 인스턴스에서 iter_attachments_info를 호출합니다.
close()이 MapiMessage 인스턴스에서 close를 호출합니다.
to_msg_document() → MsgDocument이 MapiMessage 인스턴스에서 to_msg_document를 호출합니다.

참조

 한국어