extract_msg.attachments.custom_att_handler.lnk_obj_att Module

Module contents

class extract_msg.attachments.custom_att_handler.lnk_obj_att.LinkedObjectAttachment(attachment: AttachmentBase)[source]

Bases: CustomAttachmentHandler

A link to an Outlook object.

Not positive I understand what this attachment type is, but this seems to be the most likely name. Contains presentation data about how to render it as well as properties with data that link to it. It looks similar to what the documentation for Journal specifies would be it’s custom attachment type, however some small details don’t perfectly add up.

I’ve also only seen this on Journal objects thus far.

classmethod isCorrectHandler(attachment: AttachmentBase) bool[source]

Checks if this is the correct handler for the attachment.

generateRtf() bytes | None[source]

Generates the RTF to inject in place of the objattph tag.

If this function should do nothing, returns None.

property data: None

Gets the data for the attachment.

If an attachment should do nothing when saving, returns None.

property mailMsgAttFld: EntryID | None

The EntryID of the folder of the linked Message object.

property mailMsgAttMdb: EntryID | None

The EntryID of the store of the linked Message object.

property mailMsgAttMsg: EntryID | None

The EntryID linked Message object, required only if the mailMsgAttSrchKey property is None.

property mailMsgAttSrchFld: EntryID | None

The object EntryID of the Sent Items special folder of the linked Message object.

property mailMsgAttSrchKey: bytes | None

The search key for the linked message object, required only if mailMsgAttMsg is None.

property name: None

Returns the name to be used when saving the attachment.

property obj: None

Returns an object representing the data.

May return the same value as :property data:.

If there is no object to represent the custom attachment, including bytes, returns None.