andyedinborough / aenetmail

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

Problem with attachments #103

Open takyn opened 11 years ago

takyn commented 11 years ago

Hi, I have email with one attachment (jpeg). When I invoke GetMessages, message has only 3 AlternativeViews. First two have headers (Content-Type: text/plain; charset=ISO-8859-1) and (Content-Type: text/html; charset=ISO-8859-1). This is ok, i mean. Third AlternativeView has no header, therefore ParseMime no detect that is it attachment and everything stored in the body (including headers). Like this:

Content-Type: image/jpeg; name="testovaci.JPG" Content-Disposition: attachment; filename="testovaci.JPG" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gz1gl9pe0

/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAICAgICAQICAgIDAg....

All is in body of AlternativeView. I load messages from gMail. I try more messages with attachments and all have problem. I tried to fix it but I'm lost at bounders, can you help me?

Macras commented 11 years ago

Hi, I have same problem with a attachment of any type (I think that this problem exists with all types of attachments) on GMail and Yahoo.

The Attachments collection is empty.

How to fix it? Thanks

Macras commented 11 years ago

OK, i think that source are outdate. I download component from NuGet and now is all OK.