Property | Type | Description | |
---|---|---|---|
All | |||
Answered | |||
Deleted | |||
Draft | |||
Flagged | |||
New | |||
NotAnswered | |||
NotDeleted | |||
NotDraft | |||
NotFlagged | |||
NotRecent | |||
NotSeen | |||
Recent | |||
Seen |
Method | Description | |
---|---|---|
And ( |
Create a conditional AND operation. A conditional AND operation only evaluates the second operand if the first operand evaluates to true. |
|
And ( |
Create a conditional AND operation. A conditional AND operation only evaluates the second operand if the first operand evaluates to true. |
|
BccContains ( string text ) : |
Match messages where the Bcc header contains the specified text. Matches messages where the Bcc header contains the specified text. |
|
BodyContains ( string text ) : |
Match messages where the message body contains the specified text. Matches messages where the message body contains the specified text. |
|
CcContains ( string text ) : |
Match messages where the Cc header contains the specified text. Matches messages where the Cc header contains the specified text. |
|
ChangedSince ( ulong modseq ) : |
Match messages that have mod-sequence values greater than or equal to the specified mod-sequence value. Matches messages that have mod-sequence values greater than or equal to the specified mod-sequence value. |
|
DeliveredAfter ( System.DateTime date ) : |
Match messages that were delivered after the specified date. Matches messages that were delivered after the specified date. |
|
DeliveredBefore ( System.DateTime date ) : |
Match messages that were delivered before the specified date. Matches messages that were delivered before the specified date. |
|
DeliveredOn ( System.DateTime date ) : |
Match messages that were delivered on the specified date. Matches messages that were delivered on the specified date. |
|
DoesNotHaveCustomFlag ( string flag ) : |
Match messages that do not have the specified custom flag set. Matches messages that do not have the specified custom flag set. |
|
DoesNotHaveCustomFlags ( IEnumerable |
Match messages that do not have the specified custom flags set. Matches messages that do not have the specified custom flags set. |
|
DoesNotHaveFlags ( MessageFlags flags ) : |
Match messages that do not have the specified flags set. Matches messages that do not have the specified flags set. |
|
Filter ( string name ) : |
Match messages using a saved search filter. Matches messages using a saved search filter. |
|
FromContains ( string text ) : |
Match messages where the From header contains the specified text. Matches messages where the From header contains the specified text. |
|
Fuzzy ( |
Apply a fuzzy matching algorithm to the specified expression. Applies a fuzzy matching algorithm to the specified expression. |
|
GMailMessageId ( ulong id ) : |
Match messages that have the specified GMail message identifier. This search term can only be used with GMail. |
|
GMailRawSearch ( string expression ) : |
Match messages using the GMail search expression. This search term can only be used with GMail. |
|
GMailThreadId ( ulong thread ) : |
Match messages belonging to the specified GMail thread. This search term can only be used with GMail. |
|
HasCustomFlag ( string flag ) : |
Match messages that have the specified custom flag set. Matches messages that have the specified custom flag set. |
|
HasCustomFlags ( IEnumerable |
Match messages that have the specified custom flags set. Matches messages that have the specified custom flags set. |
|
HasFlags ( MessageFlags flags ) : |
Match messages that have the specified flags set. Matches messages that have the specified flags set. |
|
HasGMailLabel ( string label ) : |
Match messages that have the specified GMail label. This search term can only be used with GMail. |
|
HeaderContains ( string field, string text ) : |
Match messages where the specified header contains the specified text. Matches messages where the specified header contains the specified text. |
|
LargerThan ( int octets ) : |
Match messages that are larger than the specified number of octets. Matches messages that are larger than the specified number of octets. |
|
MessageContains ( string text ) : |
Match messages where the raw message contains the specified text. Matches messages where the raw message contains the specified text. |
|
Not ( |
Create a logical negation of the specified expression. Creates a logical negation of the specified expression. |
|
OlderThan ( int seconds ) : |
Match messages older than the specified number of seconds. Matches messages older than the specified number of seconds. |
|
Or ( |
Create a conditional OR operation. A conditional OR operation only evaluates the second operand if the first operand evaluates to true. |
|
Or ( |
Create a conditional OR operation. A conditional OR operation only evaluates the second operand if the first operand evaluates to false. |
|
SearchQuery ( ) : System |
Initializes a new instance of the T:MailKit.Search.SearchQuery class. Creates a new SearchQuery that matches all messages. |
|
SentAfter ( System.DateTime date ) : |
Match messages that were sent after the specified date. Matches messages that were sent after the specified date. |
|
SentBefore ( System.DateTime date ) : |
Match messages that were sent before the specified date. Matches messages that were sent before the specified date. |
|
SentOn ( System.DateTime date ) : |
Match messages that were sent on the specified date. Matches messages that were sent on the specified date. |
|
SmallerThan ( int octets ) : |
Match messages that are smaller than the specified number of octets. Matches messages that are smaller than the specified number of octets. |
|
SubjectContains ( string text ) : |
Match messages where the Subject header contains the specified text. Matches messages where the Subject header contains the specified text. |
|
ToContains ( string text ) : |
Match messages where the To header contains the specified text. Matches messages where the To header contains the specified text. |
|
Uids ( IList |
Limit the search query to messages with the specified unique identifiers. Limits the search query to messages with the specified unique identifiers. |
|
YoungerThan ( int seconds ) : |
Match messages younger than the specified number of seconds. Matches messages younger than the specified number of seconds. |
Method | Description | |
---|---|---|
SearchQuery ( SearchTerm term ) : System |
Initializes a new instance of the T:MailKit.Search.SearchQuery class. Creates a new SearchQuery with the specified search term. |
Method | Description | |
---|---|---|
Header ( string field, string text ) : |
||
Optimize ( ISearchQueryOptimizer optimizer ) : |
public And ( |
||
expr | An additional query to execute. | |
return |
public static And ( |
||
left | The first operand. | |
right | The second operand. | |
return |
public static BccContains ( string text ) : |
||
text | string | The text to match against. |
return |
public static BodyContains ( string text ) : |
||
text | string | The text to match against. |
return |
public static CcContains ( string text ) : |
||
text | string | The text to match against. |
return |
public static ChangedSince ( ulong modseq ) : |
||
modseq | ulong | The mod-sequence value. |
return |
public static DeliveredAfter ( System.DateTime date ) : |
||
date | System.DateTime | The date. |
return |
public static DeliveredBefore ( System.DateTime date ) : |
||
date | System.DateTime | The date. |
return |
public static DeliveredOn ( System.DateTime date ) : |
||
date | System.DateTime | The date. |
return |
public static DoesNotHaveCustomFlag ( string flag ) : |
||
flag | string | The custom flag. |
return |
public static DoesNotHaveCustomFlags ( IEnumerable |
||
flags | IEnumerable |
The custom flags. |
return |
public static DoesNotHaveFlags ( MessageFlags flags ) : |
||
flags | MessageFlags | The message flags. |
return |
public static Filter ( string name ) : |
||
name | string | The name of the saved search. |
return |
public static FromContains ( string text ) : |
||
text | string | The text to match against. |
return |
public static Fuzzy ( |
||
expr | The expression | |
return |
public static GMailMessageId ( ulong id ) : |
||
id | ulong | The GMail message identifier. |
return |
public static GMailRawSearch ( string expression ) : |
||
expression | string | The raw GMail search text. |
return |
public static GMailThreadId ( ulong thread ) : |
||
thread | ulong | The GMail thread. |
return |
public static HasCustomFlag ( string flag ) : |
||
flag | string | The custom flag. |
return |
public static HasCustomFlags ( IEnumerable |
||
flags | IEnumerable |
The custom flags. |
return |
public static HasFlags ( MessageFlags flags ) : |
||
flags | MessageFlags | The message flags. |
return |
public static HasGMailLabel ( string label ) : |
||
label | string | The GMail label. |
return |
public static HeaderContains ( string field, string text ) : |
||
field | string | The header field to match against. |
text | string | The text to match against. |
return |
public static LargerThan ( int octets ) : |
||
octets | int | The number of octets. |
return |
public static MessageContains ( string text ) : |
||
text | string | The text to match against. |
return |
public static Not ( |
||
expr | The expression | |
return |
public static OlderThan ( int seconds ) : |
||
seconds | int | The number of seconds. |
return |
public Or ( |
||
expr | An additional query to execute. | |
return |
public static Or ( |
||
left | The first operand. | |
right | The second operand. | |
return |
protected SearchQuery ( SearchTerm term ) : System | ||
term | SearchTerm | The search term. |
return | System |
public static SentAfter ( System.DateTime date ) : |
||
date | System.DateTime | The date. |
return |
public static SentBefore ( System.DateTime date ) : |
||
date | System.DateTime | The date. |
return |
public static SentOn ( System.DateTime date ) : |
||
date | System.DateTime | The date. |
return |
public static SmallerThan ( int octets ) : |
||
octets | int | The number of octets. |
return |
public static SubjectContains ( string text ) : |
||
text | string | The text to match against. |
return |
public static ToContains ( string text ) : |
||
text | string | The text to match against. |
return |
public static Uids ( IList |
||
uids | IList |
The unique identifiers. |
return |
public static YoungerThan ( int seconds ) : |
||
seconds | int | The number of seconds. |
return |
public static SearchQuery,MailKit.Search Answered | ||
return |
public static SearchQuery,MailKit.Search Deleted | ||
return |
public static SearchQuery,MailKit.Search Draft | ||
return |
public static SearchQuery,MailKit.Search Flagged | ||
return |
public static SearchQuery,MailKit.Search NotAnswered | ||
return |
public static SearchQuery,MailKit.Search NotDeleted | ||
return |
public static SearchQuery,MailKit.Search NotDraft | ||
return |
public static SearchQuery,MailKit.Search NotFlagged | ||
return |
public static SearchQuery,MailKit.Search NotRecent | ||
return |
public static SearchQuery,MailKit.Search NotSeen | ||
return |
public static SearchQuery,MailKit.Search Recent | ||
return |