jhillyerd / enmime

MIME mail encoding and decoding package for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attachments on emails originating from Exchange server failing to parse.

smashedtoatoms opened this issue · comments

What I did: Tried to parse email with video and manifest attachments from an exchange server

What I expected: I expected the attachments to parse

What I got: Failed to ReadParts: illegal base64 data at input byte 0

Release or branch I am using: master at bed8d3f

The payload is huge because the attachment is about 5MB; however, if it would help, I have no issue sending it to you. I have tried to figure out what is going on, but I haven't had much luck. If I send it from a non-exchange email source, it works fine. Any ideas on what might be going on? This is my first foray into email parsing, and not shockingly, Microsoft is making it horrible. Thanks for any help that you can provide.

I'd be interested to see it, as I haven't heard of issues from Exchange. If you could zip it up and send to github@hillyerd.com I will take a look.

EDIT: I don't think there is any changes in the develop branch right now that would have fixed this, but may be worth testing if it is easy for you.

Ok, it is on its way.

Ugh, this is totally user-error. I was passing it a ReadCloser from which the contents had already been read. When I am not a total moron, it seems to work fine. Sorry to waste your time.