This project is read-only.
1
Vote

Attachments with odd formed encoding results in corrupt files

description

I have an email I am trying to extract the attachments from. The issue is that the message.LeafMimeParts[x] item containing the encoded attachement has a char13 + chat10 preceeding the OriginalContent content. It then appears that this is causing the decoding of my base64 attachment to result in a corrupted output.

If I manually strip the extra characters from the OriginalContent then remove the headers and run though Convert.FromBase64String it results in a correctly decoded stream.

Unfortunately I cannot share the example email as it contains personal data but if you have a fix I am happy to test.

Lake

comments