Sicos1977 / MsgKit

A .NET library to make MSG files without the need for Outlook
199 stars 55 forks source link

"Invalid length of the property stream. Parsing .msg file" #96

Closed Gergall closed 1 year ago

Gergall commented 1 year ago

Hello, thank you for this wonderful programming tool.

I generated some MSG files and tried to upload them into NetDocuments, which is a system that tries to parse uploaded documents so that it can index the different parts of the email for search purposes.

The "Invalid length of the property stream" error message comes from NetDocuments, but it is complaining about the MSG files created by MsgKit. I was wondering if you have any ideas.

The MSG files open fine and I can even save them to my Inbox in Outlook. So they seem good to me. But apparently, behind the scenes, something about these files might be a tiny bit incorrect. I don't know enough about Outlook MSG files or "property streams" to know what could be wrong.

Thank you.

Sicos1977 commented 1 year ago

Do you know about what stream it is complaining because otherwise it will be searching for a needle in a haystack because there are an awfull lot of streams inside an MSG file.

A callstack about the exception it is throwing would be really helpfull

Gergall commented 1 year ago

Thank you for the quick reply.

There might not be anything we can do. NetDocuments will not provide a more detailed error message so we don't have any clues about what property stream has an issue.

I tried just generating the "Peter Pan" example email using your exact sample code, with no changes (I provided my own crocodile.jpg). Even that email causes the property stream error. As usual, the email works fine on my machine and works fine in Outlook, only NetDocuments gives an error.

If by chance you ever find out what the problem might be, I would be interested to know about it. But I agree that due to the error message being vague, this is a needle in a haystack and probably not solvable right now.

Sicos1977 commented 1 year ago

Due the lack of a test file closed