SearchTerm Enumeration

A search term.

Definition

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public enum SearchTerm

Remarks

The search term as used by SearchQuery.

Members

All 0 A search term that matches all messages.
And 1 A search term that logically combines 2 or more other search expressions such that messages must match both expressions.
Annotation 2 A search term that matches messages that have the specified annotation.
Answered 3 A search term that matches answered messages.
BccContains 4 A search term that matches messages that contain a specified string within the Bcc header.
BodyContains 5 A search term that matches messages that contain a specified string within the body of the message.
CcContains 6 A search term that matches messages that contain a specified string within the Cc header.
Deleted 7 A search term that matches deleted messages.
DeliveredAfter 8 A search term that matches messages delivered after a specified date.
DeliveredBefore 9 A search term that matches messages delivered before a specified date.
DeliveredOn 10 A search term that matches messages delivered on a specified date.
Draft 11 A search term that matches draft messages.
Filter 12 A search term that makes use of a predefined filter.
Flagged 13 A search term that matches flagged messages.
FromContains 14 A search term that matches messages that contain a specified string within the From header.
Fuzzy 15 A search term that modifies another search expression to allow fuzzy matching.
HeaderContains 16 A search term that matches messages that contain a specified string within a particular header.
Keyword 17 A search term that matches messages that contain a specified keyword.
LargerThan 18 A search term that matches messages that are larger than a specified number of bytes.
MessageContains 19 A search term that matches messages that contain a specified string anywhere within the message.
ModSeq 20 A search term that matches messages that have the specified modification sequence value.
New 21 A search term that matches new messages.
Not 22 A search term that modifies another search expression such that messages must match the logical inverse of the expression.
NotAnswered 23 A search term that matches messages that have not been answered.
NotDeleted 24 A search term that matches messages that have not been deleted.
NotDraft 25 A search term that matches messages that are not drafts.
NotFlagged 26 A search term that matches messages that have not been flagged.
NotKeyword 27 A search term that matches messages that do not contain a specified keyword.
NotRecent 28 A search term that matches messages that are not recent.
NotSeen 29 A search term that matches messages that have not been seen.
Older 30 A search term that matches messages that are older than a specified date.
Or 31 A search term that logically combines 2 or more other search expressions such that messages only need to match one of the expressions.
Recent 32 A search term that matches messages that are recent.
SaveDateSupported 33 A search term that matches all messages in the mailbox when the underlying storage of that mailbox supports the save date attribute. Conversely, it matches no messages in the mailbox when the save date attribute is not supported.
SavedBefore 34 A search term that matches messages that were saved to the mailbox before a specified date.
SavedOn 35 A search term that matches messages that were saved to the mailbox on a specified date.
SavedSince 36 A search term that matches messages that were saved to the mailbox since a specified date.
Seen 37 A search term that matches messages that have been seen.
SentBefore 38 A search term that matches messages that were sent before a specified date.
SentOn 39 A search term that matches messages that were sent on a specified date.
SentSince 40 A search term that matches messages that were sent since a specified date.
SmallerThan 41 A search term that matches messages that are smaller than a specified number of bytes.
SubjectContains 42 A search term that matches messages that contain a specified string within the Subject header.
ToContains 43 A search term that matches messages that contain a specified string within the To header.
Uid 44 A search term that matches messages included within a specified set of unique identifiers.
Younger 45 A search term that matches messages that are younger than a specified date.
GMailMessageId 46 A search term that matches messages with a specified GMail message identifier.
GMailThreadId 47 A search term that matches messages with a specified GMail thread (conversation) identifier.
GMailLabels 48 A search term that matches messages with the specified GMail labels.
GMailRaw 49 A search term that uses the GMail search syntax.

See Also