-
-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeleteAllMessages not working on Pop3Client #184
Comments
…essageCount() Since the assumption that all consumers of the MailSpool API would immediately call GetMessageCount() (and that assumption turned out to be wishful thinking), I have decided to instead make this behavior explicit by adding a Count property and Obsoleting the GetMessageCount() method. Fixes issue #184
The reason that When Since it is clear that this assumption was wrong, I have modified Pop3Client to query the message count itself automatically once the client is authenticated. This means that I can now have a |
Thanks Jeffrey. Looks like that might have had an impact on my deletes for single messages as well, but that "magically' vanished, I think because I started calling GetMessageCount before calling delete. |
No problem. I've just released MailKit 1.0.16 with this fix to nuget.org as well. |
I am trying to clear a mailbox, with the method below (excuse the vb, not my fault):
Yet
GetMessageCount
still always returns a 7, i.e nothing seems to be getting deleted. Then, I don't see any DELE command in the log file written:My own
DeleteAllMessages
is the only method called, so I know only this method writing to the log.The text was updated successfully, but these errors were encountered: