jstedfast / MailKit

A cross-platform .NET library for IMAP, POP3, and SMTP.

Home Page:http://www.mimekit.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Questions to Pop3Client.DeleteMessage

AdvancedNotifier opened this issue · comments

If I delete a message with Pop3Client.DeleteMessage, the message should be marked for deletion, if I'm right.

After this, Pop3Client.GetMessageCount still counts this message furthermore. But if I try to receive them again with Pop3Client.GetMessageHeaders (with `IList), I can't receive them.

My questions:

  • Why will the message be countered furthermore, but I can't get it?
  • Is there a way to delete the message completely (immediately) without disconnecting?

PS
Thanks a lot for your great support.

Why will the message be countered furthermore, but I can't get it?

That's just the way the POP3 protocol was designed.

Is there a way to delete the message completely (immediately) without disconnecting?

Unfortunately, no. Again, this is just how the POP3 protocol was designed.