File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
extract_msg/attachments/custom_att_handler Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2121 'CustomAttachmentHandler' ,
2222 'LinkedObjectAttachment' ,
2323 'OutlookImageDIB' ,
24+ 'OutlookImageMetafile' ,
2425
2526 # Functions.
2627 'getHandler' ,
@@ -55,6 +56,7 @@ def registerHandler(handler: Type[CustomAttachmentHandler]) -> None:
5556# Import built-in handler modules. They will all automatically register their
5657# respecive handler(s).
5758from .outlook_image_dib import OutlookImageDIB
59+ from .outlook_image_meta import OutlookImageMetafile
5860from .lnk_obj_att import LinkedObjectAttachment
5961
6062
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def name(self) -> str:
147147 # on the number.
148148 if not (name := self .attachment .name ):
149149 name = f'attachment { int (self .attachment .dir [- 8 :], 16 )} '
150- return name + '.bmp '
150+ return name + '.wmf '
151151
152152 @property
153153 def obj (self ) -> bytes :
You can’t perform that action at this time.
0 commit comments