Closed GTCrais closed 2 years ago
Thanks I'll check this!
Ok 1.12.0-alpha.1
will resolve exporting problem.
Great, thanks a lot! I will test this out today and come back with feedback.
Update:
Your fixes (mostly) work! There is still one issue, though. Steps to reproduce:
1) Parse TestOuterEmail2.msg
(so, the bigger one)
2) Save its one attachment ( Test Attachment Email.msg
)
3) While this attachment now can be processed by the msgreader
, when trying to open it in MS Outlook, it won't open. The message I get is "Cannot start Microsoft Outlook. Cannot read the item" so there's still an issue with it being saved to disk.
This is NOT the case with TestOuterEmail1
and its attached email. The issue only happens with TestOuterEmail2
and its attached .msg
.
Sorry. 1.12.0-alpha.2
will fix the second error: some of CFBF documents are broken when exporting internal msg from TestOuterEmail2.msg
.
Thanks a lot, great job! Handling attachments works great now!
I have a FileOne
.msg
file that contains another FileTwo.msg
file as an attachment. FileTwo contains several PDFs and DOCXs as attachments, which makes it about 22MB in size.When iterating over FileOne's attachments (of which there's only one -- FileTwo
.msg
), I save that attachment, and then when I try to parse it using yourmsgreader
, it errors out. It does save the attachment "successfully" as a file, but that file is corrupted and cannot be parsed. Microsoft Outlook also cannot open it.When I open FileOne in MS Outlook, and manually save FileTwo to my desktop, the file is not corrupted, and can also be parsed by
msgreader
. There is also a difference in size when saved throughmsgreader
vs manually: Throughmsgreader
: 22,433,792 bytes Saved manually: 22,425,600 bytesThe error I'm getting is the following:
Maybe it's related to this suggestion - https://github.com/HiraokaHyperTools/msgreader/issues/3 ?
Unfortunatelly I cannot provide.msg
in question because it contains sensitive data. I will try to manually create one that gives me the same error, but I'm not sure I'll be successful.I was able to create 2 emails that cause DataStream errors, they're available here: https://bit.ly/2ZV79dZ
TestOuterEmail1
's attachment.msg
causes the error I posted above, whileTestOuterEmail2
's.msg
attachment causes the following error:Steps to reproduce: 1) Parse one of those emails using
msgreader
2) Save the.msg
attachment 3) Read the saved attachment, and try parsing it usingmsgreader
It's maybe worth mentioning I'm using version
1.9.0
because, while1.11.*
did fix the original issue I posted (https://github.com/HiraokaHyperTools/msgreader/issues/19) it also broke a bunch of other stuff. I'm going to open a ticket about that tomorrow.