extract_msg.attachments.custom_att_handler.outlook_image_dib Module
Module contents
- class extract_msg.attachments.custom_att_handler.outlook_image_dib.OutlookImageDIB(attachment: AttachmentBase)[source]
Bases:
CustomAttachmentHandler
Custom handler for a special attachment type, a Device Independent Bitmap stored in a way special to Outlook.
- 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
.- Raises:
DependencyError – PIL or Pillow could not be found.
- property data: bytes
Gets the data for the attachment.
If an attachment should do nothing when saving, returns
None
.
- property name: str
Returns the name to be used when saving the attachment.
- property obj: bytes
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
, returnsNone
.