Considering it was a little bit faster I choose to search message using Enums.MessageFetchMode.Tiny then check for attachments. If attachment exist then use attachment.download before try to save it on disk.
But, for an specific mail server I observed an exception due to "Invalid character in a Base-64 string.". My guess is:
1) Mail server is not providing files
2) Library is failing at some point on download (even checking downloaded).
But main point is, I can´t even check for FileData.Count > 0 or Filesize, because both return same message wich I conclude is an Exception.
On the other hand, I changed my search using Enums.MessageFetchMode.Full, and it worked fine, no messages or exceptions.
What can be done to work as I supposed be faster, I mean Enums.MessageFetchMode.Tiny then Attachment.Download?
But, for an specific mail server I observed an exception due to "Invalid character in a Base-64 string.". My guess is:
1) Mail server is not providing files
2) Library is failing at some point on download (even checking downloaded).
But main point is, I can´t even check for FileData.Count > 0 or Filesize, because both return same message wich I conclude is an Exception.
On the other hand, I changed my search using Enums.MessageFetchMode.Full, and it worked fine, no messages or exceptions.
What can be done to work as I supposed be faster, I mean Enums.MessageFetchMode.Tiny then Attachment.Download?