convert-outlook-msg-file icon indicating copy to clipboard operation
convert-outlook-msg-file copied to clipboard

Blank emails have RTF error

Open thorsted opened this issue 3 years ago • 0 comments

It seems if an email does not include text in the body, and may only have attachments, script throws RTF_COMPRESSED error.

Traceback (most recent call last): File "/Users/thorsted/Downloads/convert-outlook-msg-file-primary/outlookmsgfile.py", line 834, in msg = load(fn) File "/Users/thorsted/Downloads/convert-outlook-msg-file-primary/outlookmsgfile.py", line 36, in load return load_message_stream(doc.root, True, doc) File "/Users/thorsted/Downloads/convert-outlook-msg-file-primary/outlookmsgfile.py", line 123, in load_message_stream rtf = props['RTF_COMPRESSED'] KeyError: 'RTF_COMPRESSED'

thorsted avatar Nov 23 '21 18:11 thorsted