ImapQueryBuilder

ImapQueryBuilder class

Represents the builder of search expression
that used by IMAP protocol.

The ImapQueryBuilder type exposes the following members:

Constructors

NameDescription
ImapQueryBuilder(default_encoding)Initializes a new instance of the ImapQueryBuilder class
ImapQueryBuilder()Initializes a new instance of the ImapQueryBuilder class.

Properties

NameDescription
toGets the field that allows to find messages that contain the specified string in the envelope structure’s TO field.
textGets 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.
bccGets the field that allows to find messages that contain the specified string in the envelope structure’s BCC field.
bodyGets the field that allows to find messages that contain the specified string in the body of the message.
ccGets the field that allows to find messages that contain the specified string in the envelope structure’s CC field.
from_addressGets the field that allows to find messages that contain the specified string in the envelope structure’s FROM field.
subjectGets the field that allows to find messages that contain the specified string in the envelope structure’s SUBJECT field.
default_encodingGets default encoding (charset) for query builder
internal_dateGets the field that allows to find messages by internal date.
sent_dateGets the field that allows to find messages by sent date.
message_sizeGets messages with an specified size.
unique_idUnique identifier
e_search_parametersGets or sets ESEARCH Parameters
This method works only if server supports ESEARCH extension.
Please, read more https://tools.ietf.org/html/rfc4315
mod_seqModification sequence

Methods

NameDescription
either(query1, query2)
get_query()
has_flags(flags)
has_no_flags(flags)
has_header(field_name, field_value)
custom_search(field_value)

See Also