This project is read-only.

How to do reconnect with pop3?

Jan 24, 2013 at 1:15 PM

Hi, few days ago I decided to use your library for receiving my emals through pop3 protocol, but today I encountered with next issue:

After receiving 738 messages I getting the exception "-ERR No such message, only 2892 messages in maildrop".

When I try to get message number 740 I getting exception with empty message and when I'm trying receive next messages the error "Unable to write data to the transport connection: An established connection was aborted by the software in your host machine."

After each fail message I'm trying to reconnect with Authenticate method, but it's not working.

Can somebody give me advice how to figure out this type of problem?

Jan 25, 2013 at 8:16 AM
Edited Jan 25, 2013 at 8:19 AM

I think it was kind of mail server glitch because when I'm doing restart and trying to receive just the message which thrown an exception - it's doing well. So my solution is reinitalizing Pop3Client object through constructor call like this: 

Pop3Client client = new Pop3Client(settings.Host, settings.Port, settings.Email, settings.Password);
client.Ssl = settings.isSSL;

If somebody have better solution please let me know.