+1 vote

I'm seeing a lot of these exceptions in my app:

Limilabs.Client.POP3.Pop3ResponseException: 
    * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE 
        IDLE NAMESPACE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
   at  ​  .  (Pop3Response response)
   at  ​  . (Pop3Response response)
   at Limilabs.Client.POP3.Pop3.GetServerGreeting()
   at Limilabs.Client.ClientBase.Connect(
        String host, Int32 port, Boolean useSSL)

Looks like Limilabs doesn't like the response text, which is probably malformed but still should be OK if you look at it.

by (660 points)

1 Answer

+1 vote
 
Best answer

This looks like IMAP response, not POP3.

Please use Imap client class instead of Pop3.

using(Imap imap = new Imap())
{
    imap.ConnectSSL("imap.server.com");
    imap.UseBestLogin("user", "pass");

    imap.SelectInbox();

    // ... Your code goes here ...

    imap.Close();
}
by (297k points)
selected by
...