Click or drag to resize
MimeKit

SearchQueryFromContains Method

Match messages where the From header contains the specified text.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static TextSearchQuery FromContains(
	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 where the From header contains the specified text.

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