SearchQueryGMailRawSearch Method

Match messages using the GMail search expression.

Definition

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

Parameters

expression  String
The raw GMail search text.

Return Value

TextSearchQuery
A TextSearchQuery.

Remarks

Matches messages using Google's custom message search syntax.

  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.

Exceptions

ArgumentNullException expression is .
ArgumentException expression is empty.

See Also