Hi kiquenet,
the above code has nothing to do with ImapX. It's for the S22.Imap client. However, in ImapX try the following:
Pavel
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