Skip to content

Commit ecb9798

Browse files
Merge branch 'next-release' of https://github.com/TeamMsgExtractor/msg-extractor into next-release
2 parents 7e3a7f0 + 341b056 commit ecb9798

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extract_msg/msg_classes/msg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def existsTypedProperty(self, _id: str, location = None, _type = None, prefix: b
479479
foundNumber += 1
480480
return (foundNumber > 0), foundNumber
481481

482-
def export(self, path) -> None:
482+
def export(self, path, allowBadEmbed: bool = False) -> None:
483483
"""
484484
Exports the contents of this MSG file to a new MSG files specified by
485485
the path given.
@@ -498,10 +498,10 @@ def export(self, path) -> None:
498498
# Create an instance of the class used for writing a new OLE file.
499499
writer = OleWriter()
500500
# Add all file and directory entries to it. If this
501-
writer.fromMsg(self)
501+
writer.fromMsg(self, allowBadEmbed = allowBadEmbed)
502502
writer.write(path)
503503

504-
def exportBytes(self) -> bytes:
504+
def exportBytes(self, allowBadEmbed: bool = False) -> bytes:
505505
"""
506506
Saves a new copy of the MSG file, returning the bytes.
507507
"""

0 commit comments

Comments
 (0)