I'm getting this error while trying to get number of messages from Yahoo server.
I'm doing it per message (i.e. login to yahoo, get list of messages, than later go through list and connect, log in and get it one by one. After some amount of calls (few hundreds) I'm starting to get those messages during login call. Once it's started I cannot log in back in. Here is s a snippet of code:
using (Imap client = new Imap())
{
TlsParameters parameters = new TlsParameters();
parameters.CertificateVerifier = new Verifier();
client.Options = ImapOptions.UsePeekForGetMessage;
client.Timeout = 600000;
client.Connect(, , parameters, ImapSecurity.Implicit);
client.Login(, , ImapAuthentication.Auto);
var folder = client.GetFolderInfo();
if (folder.IsSelectable)
{
client.SelectFolder();
client.GetMessage(, );
var message = client.GetMessageInfo(, ImapListFields.FullHeaders);
return new Foo()
{
};
}
}