Comments on: Save all attachments to disk using IMAP https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap Using Limilabs .net components Fri, 11 Aug 2023 09:08:33 +0000 hourly 1 https://wordpress.org/?v=6.6.2 By: Limilabs support https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap#comment-576894 Thu, 24 Oct 2013 07:58:10 +0000 http://www.limilabs.com/blog/?p=1232#comment-576894 In reply to Chris B.

@Chris B,

You can search by message-id (Expression.MessageId), but you still need to select a folder to search in. There is no server-wide search in IMAP protocol.

If you are using Gmail however, all emails are stored in “All Mail” folder – you can search there (consider also using Expression.GmailMessageId as it is set by server and is valid in all folders).

]]>
By: Chris B https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap#comment-576751 Wed, 23 Oct 2013 16:38:04 +0000 http://www.limilabs.com/blog/?p=1232#comment-576751 Is it possible to first retrieve the message by its message ID, rather than using a combination of the long uid and setting the correct folder?

]]>
By: ThomasD https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap#comment-498188 Thu, 14 Mar 2013 15:38:08 +0000 http://www.limilabs.com/blog/?p=1232#comment-498188 Perfect! Thank you.

]]>
By: Limilabs support https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap#comment-498185 Thu, 14 Mar 2013 15:18:29 +0000 http://www.limilabs.com/blog/?p=1232#comment-498185 In reply to ThomasD.

@ThomasD

You can get direct access to attachment’s data as MemoryStream using MimeData.GetMemoryStream() method.

]]>
By: ThomasD https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap#comment-498184 Thu, 14 Mar 2013 15:09:34 +0000 http://www.limilabs.com/blog/?p=1232#comment-498184 How can I store attachments into a database blob field e.g. via memorystream?

]]>
By: Limilabs support https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap#comment-413863 Thu, 17 Jan 2013 21:42:53 +0000 http://www.limilabs.com/blog/?p=1232#comment-413863 In reply to Shadowfax.

@Shadowfax,

Yes, it is possible. You should simply save the eml data you get from GetMessageByUID method:
http://www.limilabs.com/blog/save-raw-eml-file-imap-pop3

]]>
By: Shadowfax https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap#comment-412884 Thu, 17 Jan 2013 13:26:47 +0000 http://www.limilabs.com/blog/?p=1232#comment-412884 Hi there
using the library is it possible to save the entire email (including all attachments) as a .eml file ? I need to store the raw format of the mail and when opening the file – it will use the default mail application .

]]>
By: Receive unseen emails using IMAP | Blog | Limilabs https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap#comment-11780 Tue, 08 May 2012 19:07:40 +0000 http://www.limilabs.com/blog/?p=1232#comment-11780 […] At that point you can also access attachments. […]

]]>
By: Limilabs support https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap#comment-9826 Thu, 26 Apr 2012 20:53:45 +0000 http://www.limilabs.com/blog/?p=1232#comment-9826 In reply to A K Das.

@A K Das
Please take a look at this post:
http://www.limilabs.com/blog/receive-unseen-emails-using-imap
It describes how to download unseen emails using IMAP protocol.

]]>
By: A K Das https://www.limilabs.com/blog/save-all-attachments-to-disk-using-imap#comment-9761 Thu, 26 Apr 2012 12:52:05 +0000 http://www.limilabs.com/blog/?p=1232#comment-9761 Dear all i need to download attachment in web application how can i download attachments from any mail server in asp.net (C#) Application

]]>