andyedinborough / aenetmail

C# POP/IMAP Mail Client
370 stars 153 forks source link

Gmail zip attachment download fails #84

Open shanecastle opened 12 years ago

shanecastle commented 12 years ago

I'm connecting to imap.google.com to download some zip files. The Attachment.Save() method fails, it cuts the file off and says file isnt base64 encoded.

I asked the question on StackOverflow before finding this forum: http://stackoverflow.com/questions/10921752/ae-net-mail-imap-partial-fetch

The problem seems to come up with Java as well, and is resolved with setting partial fetch to false: http://stackoverflow.com/questions/1755414/javamail-baseencode64-error

Any ideas?

andyedinborough commented 12 years ago

I've been unable to find the IMAP command to disable partial fetching. I will get it into code as soon as I can find it. :/

shanecastle commented 12 years ago

There doesn't seem to be a way to find the attachment size in the headers. Think its possible to get that info and use it while downloading?