0 votes

Now i am downloading attachments by this method imap.GetDataByUID(file); but it is too slow .so can i use the contentid of the file name and download it directly by ContentIdHelper.GetContentId(ContentID) method if yes then how or no then kindly guide me to download single attchment quickly.

related to an answer for: Can i get the mail attachment filepath..?
by

1 Answer

0 votes

ContentIdHelper.GetContentId method decodes cid urls. It converts URL such as 'cid:a%25b@c' into correct Content-ID message header ('a%b@c').

This method doesn't download any data.

I don't really understand, why you assume that you can download attachment faster.
In most cases the transfer is limited by the server and the network, not by the way you download.

by (301k points)
...