# How to set up a condition (Business email forwarding)

## How to set up a condition <a href="#ariaid-title1" id="ariaid-title1"></a>

In order for a filter to work properly, you need to put together its condition correctly. Enter a parameter for the condition, along with its value and how strictly the condition should apply.![](https://yastatic.net/doccenter/images/support.yandex.com/en/mail/freeze/FiURyZP_28jiP7pF2lSadIAl9SY.png)

Enter the value of the chosen parameterHow strictly the condition should be metSelect a parameter

### Condition parameters and values

| Parameter       | What to specify as the parameter value                                                             | Example of parameter value               |
| --------------- | -------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| From            | Sender address                                                                                     | <alice.the.girl@yandex.com>              |
| To or Сс        | Recipient address or Cc recipient address                                                          | <cheshire.katze@yandex.com>              |
| To              | Recipient address                                                                                  | <cheshire.katze@yandex.com>              |
| Сс              | Cc recipient address                                                                               | <just.mad.hatter@yandex.com>             |
| Subject         | Email subject                                                                                      | Madness                                  |
| Email body      | Email text                                                                                         | We're all mad here. I'm mad. You're mad. |
| Attachment name | Name of attached file                                                                              | document.pdf                             |
| Header          | [Information from message headers](https://yandex.com/support/mail/tech-glossary.html#mail-titles) | To: <cheshire.katze@yandex.com>          |

### How strictly the condition should apply

| Strictness      | Comment                                                                                                                                                                                                          | Usage example                                                                                                                                                                                                                     |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| matches         | The filter will apply to emails with parameters that exactly match the specified value (address or exact spelling of a word).                                                                                    | If Subject has the value “Madness”, the filter applies to messages with the subject “Madness is everywhere” and “Don't fight the madness”. But it won't apply to a message with the subject “About madnes”.                       |
| doesn't match   | The filter will apply to emails with parameters that don't exactly match the specified value (address or exact spelling of a word).                                                                              | If Subject has the value “Madness”, the filter applies to the message with the subject “About madnes”. The filter won't apply to messages with subjects like “Madness is everywhere” and “Don't fight the madness”.               |
| contains        | The filter will apply to emails with parameters that match the specified value or contain the specified characters (for example, all forms of the specified word or email addresses with the specified element). | If Subject has the value “cat”, the filter applies to messages with the subjects “Cheshire Cat”, “Caterpillar's advice” and “Catching up”.                                                                                        |
| doesn't contain | The filter will apply to messages that don't contain the specified characters.                                                                                                                                   | If Subject has the value “cat”, the filter applies to messages with subjects like “Madness is everywhere”, “Message from the Queen” and “I'm late”. Likewise, the filter won't apply to an email with the subject “Cheshire Cat”. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vintcer.com/business-email/how-to-set-up-a-condition-business-email-forwarding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
