Click or drag to resize
MimeKit

SearchQueryGMailRawSearch Method

Match messages using the GMail search expression.

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

Parameters

expression  String
The raw GMail search text.

Return Value

TextSearchQuery
A TextSearchQuery.
Exceptions
ExceptionCondition
ArgumentNullExceptionexpression is null.
ArgumentExceptionexpression is empty.
Remarks

Matches messages using Google's custom message search syntax.

Note  Note
This is equivalent to the X-GM-RAW search key as defined in Google's IMAP extensions and is therefor only available for use with IMAP servers that support the X-GM-EXT1 extension.
See Also