Click or drag to resize
MimeKit

SearchQueryNotFlags Method

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

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

Parameters

flags  MessageFlags
The message flags.

Return Value

SearchQuery
A SearchQuery.
Exceptions
ExceptionCondition
ArgumentExceptionflags does not specify any valid message flags.
Remarks

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

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