SearchQueryNotFlags Method

Match messages that do not have any of the specified flags set.

Definition

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static SearchQuery NotFlags(
	MessageFlags flags
)

Parameters

flags  MessageFlags
The message flags.

Return Value

SearchQuery
A SearchQuery.

Remarks

Matches messages that do not have any of the specified flags set.

  Note

Maps each flag to the corresponding search key (UNANSWERED, UNDELETED, UNDRAFT, UNFLAGGED, OLD or UNSEEN) as defined in rfc3501.

Exceptions

ArgumentException flags does not specify any valid message flags.

See Also