Click or drag to resize
MimeKit

SearchQueryHasKeyword Method

Match messages that have the specified keyword set.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static TextSearchQuery HasKeyword(
	string keyword
)

Parameters

keyword  String
The keyword.

Return Value

TextSearchQuery
A TextSearchQuery.
Exceptions
ExceptionCondition
ArgumentNullExceptionkeyword is null.
ArgumentExceptionkeyword is empty.
Remarks

Matches messages that have the specified keyword set.

A keyword is a user-defined message flag that can be set (or unset) on a message.

Note  Note
This is equivalent to the KEYWORD search key as defined in rfc3501.
See Also