Skip to content

I upgraded MailKit from v2.x and now the AddFlags() method doesn't seem to exist? #1646

Answered by jstedfast
Stephan-4711 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Stephan-4711,

A lot of API changes were made in MailKit v3.0 to combat the explosion of ImapFolder overloads that were being added in order to support additional IMAP extensions that MailKit was being updated to support.

In v2.x for example, MailKit had the following AddFlags() method overloads:

  • AddFlags(int index, MessageFlags flags, bool silent, CancellationToken cancellationToken)
  • AddFlags(UniqueId uid, MessageFlags flags, bool silent, CancellationToken cancellationToken)
  • AddFlags(IList<int> indexes, MessageFlags flags, bool silent, CancellationToken cancellationToken)
  • AddFlags(IList<UniqueId> uid, MessageFlags flags, bool silent, CancellationToken cancellationToken)
  • AddFlags(int …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Stephan-4711
Comment options

Answer selected by jstedfast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants