Class ImapQueryBuilder
ImapQueryBuilder class
Represents the builder of search expression that used by IMAP protocol.
public sealed class ImapQueryBuilder : MailQueryBuilder
Constructors
Name | Description |
---|
ImapQueryBuilder() | Initializes a new instance of the ImapQueryBuilder class. |
ImapQueryBuilder(Encoding) | Initializes a new instance of the ImapQueryBuilder class. |
Properties
Name | Description |
---|
Bcc { get; } | Gets the field that allows to find messages that contain the specified string in the envelope structure’s BCC field. |
Body { get; } | Gets the field that allows to find messages that contain the specified string in the body of the message. |
Cc { get; } | Gets the field that allows to find messages that contain the specified string in the envelope structure’s CC field. |
DefaultEncoding { get; } | Gets default encoding (charset) for query builder |
ESearchParameters { get; set; } | Gets or sets ESEARCH Parameters This method works only if server supports ESEARCH extension. Please, read more https://tools.ietf.org/html/rfc4315 |
From { get; } | Gets the field that allows to find messages that contain the specified string in the envelope structure’s FROM field. |
InternalDate { get; } | Gets the field that allows to find messages by internal date. |
MessageSize { get; } | Gets messages with an specified size. |
ModSeq { get; } | Modification sequence |
SentDate { get; } | Gets the field that allows to find messages by sent date. |
Subject { get; } | Gets the field that allows to find messages that contain the specified string in the envelope structure’s SUBJECT field. |
Text { get; } | Gets the field that allows to find the messages that contain the specified string in the headers (subject, from, to, cc) and body of the message. |
To { get; } | Gets the field that allows to find messages that contain the specified string in the envelope structure’s TO field. |
UniqueId { get; } | Unique identifier |
Methods
Name | Description |
---|
CustomSearch(string) | Search messages according to extended server search syntax. |
GetQuery() | Gets the query. |
HasFlags(ImapMessageFlags) | Search messages with the specified flags. |
HasHeader(string, string) | Search messages that have a header with the specified field-name and that contains the specified string in the text of the header (what comes after the colon). If the string to search is zero-length, this matches all messages that have a header line with the specified field-name regardless of the contents. |
HasNoFlags(ImapMessageFlags) | Search messages with the unspecified flags. |
Or(MailQuery, MailQuery) | Search messages that match either search key. Provides disjunction between two expressions (OR). |
See Also