Click or drag to resize
MimeKit

SearchQueryMessageContains Method

Match messages that contain the specified text in either the header or the body.

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

Parameters

text  String
The text to match against.

Return Value

TextSearchQuery
A TextSearchQuery.
Exceptions
ExceptionCondition
ArgumentNullExceptiontext is null.
ArgumentExceptiontext is empty.
Remarks

Matches messages that contain the specified text in either the header or the body.

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