
## MailQueryBuilder class

Represents the builder of search expression.

The MailQueryBuilder type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|MailQueryBuilder()|Initializes a new instance of the [MailQueryBuilder](/email/python-net/aspose.email.tools.search/mailquerybuilder/) class.|
|MailQueryBuilder(default_encoding)|Initializes a new instance of the MailQueryBuilder class|
## Properties
| Name | Description |
| :- | :- |
|to|Gets the field that allows to find messages that contain the specified string in the envelope structure's TO field.|
|text|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.|
|bcc|Gets the field that allows to find messages that contain the specified string in the envelope structure's BCC field.|
|body|Gets the field that allows to find messages that contain the specified string in the body of the message.|
|cc|Gets the field that allows to find messages that contain the specified string in the envelope structure's CC field.|
|from_address|Gets the field that allows to find messages that contain the specified string in the envelope structure's FROM field.|
|subject|Gets the field that allows to find messages that contain the specified string in the envelope structure's SUBJECT field.|
|default_encoding|Gets default encoding (charset) for query builder|
|internal_date|Gets the field that allows to find messages by internal date.|
|sent_date|Gets the field that allows to find messages by sent date.|
## Methods
| Name | Description |
| :- | :- |
|either(query1, query2)|  |
|get_query()|  |

### See Also

* namespace [aspose.email.tools.search](/email/python-net/aspose.email.tools.search/)
* assembly [Aspose.Email](/email/python-net/)

