1 May 2017

Pick up Emails from IMAP

            
using (ImapClient client = new ImapClient("server.name", 993, "account.name", "account.passwd", AuthMethod.Login, true))
            {

                IEnumerable<uint> uids = client.Search(SearchCondition.SentSince(DateTime.Now.AddDays(-7)));
                IEnumerable<mailmessage> messages = client.GetMessages(uids, FetchOptions.HeadersOnly);
            }
If I helped you out today, you can buy me a beer below. Cheers!