MailKit
MailKit copied to clipboard
README has obsolete API in it
Describe the bug
You've removed AddFlags API from IMailFolder but the README still has an old example
Please provide an updated example if possible
I assume that this code:
imap.Inbox.AddFlags(uids, MailKit.MessageFlags.Deleted, true);
Should new be
imap.Inbox.Store(uids, new MailKit.StoreFlagsRequest(MailKit.StoreAction.Add, MailKit.MessageFlags.Deleted));
Oh, I didn't realize that simply adding using MailKit fixes this, because it makes IMailFolderExtensions visible.
Sorry for the false alarm
I think it would actually be closer to this (but your assumption is 99% correct):
imap.Inbox.Store(uids, new MailKit.StoreFlagsRequest(MailKit.StoreAction.Add, MailKit.MessageFlags.Deleted) { Silent = true });
No worries, the docs should be updated for sure.
I've updated the README.md for this particular API change, but I need to still audit the rest of the docs