Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: Search results from Gmail

$
0
0
Hi kiquenet,

the above code has nothing to do with ImapX. It's for the S22.Imap client. However, in ImapX try the following:
var client = new ImapClient("imap.gmail.com", true);
if(client.Connect())
{
     if(client.Login(user, pass))
     {
           var msgs = client.Folders.All.Search("FROM \"mailer-daemon@googlemail.com\"");
           Console.WriteLine(messages.Count());
     }
}
Best regards,

Pavel

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>