andyedinborough / aenetmail

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

Flag for attachments (when getting messages with headers only) #59

Open HeZumbu23 opened 12 years ago

HeZumbu23 commented 12 years ago

This is more a feature request than an issue.

It would be great to have some kind of flag indicating that the mail has got attachments, even when only the headers are loaded.

Thank you!

piher commented 12 years ago

It is up to you to count the attachments and write it somewhere once you have retrieved the full message because there is no such header.

HeZumbu23 commented 12 years ago

Hi piher,

as I am on a mobile client with small bandwidth, I would have to retrieve the full message just to know if there are attachments or not, which would be not very performant (there is no server side cache for my application)

piher commented 12 years ago

I understand. Well as I said there is no such header so when using a pop3 client I don't think it's possible :-/ But i'm not an expert ! Fortunately, the IMAP commands are more advanced. You should take a look at : http://stackoverflow.com/questions/4745572/imap-attachement-retriving-commnand You should be able to implement the function yourself until andy has time to look around here.