Attachment identification and downloading mails

Topics: Help requests
Jan 8, 2015 at 9:39 PM
Edited Jan 9, 2015 at 4:40 PM
Hi,

I'm trying to download mails from a couple of accounts, while using ImapX.Enums.MessageFetchMode.Full , I'm using the full mode because it reports all the 3 types of attachments in a mail; but sometimes it just gets stuck, is there a way to terminate it or to wait just a couple of minutes and disconnect from the server?

Or is there a way to know if the mail has: Attachments, Embedded resources or BodyParts without downloading the whole message? Because to my understanding Basic mode won't get attachments.

I'm using VS2010 and C# .Net Framework 4.

Thanks in advance.

EDIT: I noticed this happens only on one particular account, is there a way to enable a log from the library and try to pin down what's going on with that particular email connection?