foens / hpop

OpenPOP.NET code repository
http://hpop.sourceforge.net/
204 stars 114 forks source link

Mails get not deleted after QUIT #94

Open DarthSonic opened 2 years ago

DarthSonic commented 2 years ago
var messageCount = client.GetMessageCount();
for (var messageId = 1; messageId <= messageCount; messageId++)
{
    var pop3Message = client.GetMessage(messageId);
    // do something with message
    client.DeleteMessage(messageId);
}
client.Disconnect()

With this code E-Mails get not deleted after Disconnect. Why that?