How to compose a condition
In order for a filter to work properly, you need to define the condition correctly. The condition specifies the parameter, its value, and how strict the condition is.

Parameters and values
Parameter | What to specify in a parameter's 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 | Cc recipient address | just.mad.hatter@yandex.com |
Subject | Email subject | Madmen |
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 | To: cheshire.katze@yandex.com |
Parameter | What to specify in a parameter's 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 | Cc recipient address | just.mad.hatter@yandex.com |
Subject | Email subject | Madmen |
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 | To: cheshire.katze@yandex.com |
The strictness of the conditions
There are four strictness levels:
Email to filter | Applicable for parameters | Example of filtering |
---|---|---|
Emails with parameters strictly matching the specified value (username or address). | To From Cc To or Сс | For example, when filtering the From parameter, you can either specify the address value of just.mad.hatter@yandex.com or the name value of “Mad Hatter”. In both cases, an email sent by “Mad Hatter” with the address of just.mad.hatter@yandex.com will be filtered. For example, when filtering the From parameter, you can either specify the address value of igor.markov.sales@example.com or the name value of “Igor Markov”. In both cases, an email sent by “Igor Markov” with the address of igor.markov.sales@example.com will be filtered. |
Emails with parameters that strictly match the specified value. | Subject Email body Attachment name Header | If the Subject parameter has the value “we're mad”, an email with the subject “We're mad” will be filtered. |
Emails with bodies matching the specified value (standalone or in a phrase, the initial word and its word forms). | Email body | If the Email body parameter has the value “mad”, emails containing the text like “We're all mad in our own way” or “We're all mad” will also be filtered. |
Email to filter | Applicable for parameters | Example of filtering |
---|---|---|
Emails with parameters strictly matching the specified value (username or address). | To From Cc To or Сс | For example, when filtering the From parameter, you can either specify the address value of just.mad.hatter@yandex.com or the name value of “Mad Hatter”. In both cases, an email sent by “Mad Hatter” with the address of just.mad.hatter@yandex.com will be filtered. For example, when filtering the From parameter, you can either specify the address value of igor.markov.sales@example.com or the name value of “Igor Markov”. In both cases, an email sent by “Igor Markov” with the address of igor.markov.sales@example.com will be filtered. |
Emails with parameters that strictly match the specified value. | Subject Email body Attachment name Header | If the Subject parameter has the value “we're mad”, an email with the subject “We're mad” will be filtered. |
Emails with bodies matching the specified value (standalone or in a phrase, the initial word and its word forms). | Email body | If the Email body parameter has the value “mad”, emails containing the text like “We're all mad in our own way” or “We're all mad” will also be filtered. |
Email to filter | Applicable for parameters | Example of filtering |
---|---|---|
Email with parameters that strictly exclude the specified value (username or address). | To From Cc To or Сс | For example, when filtering the From parameter, you can either specify the address value of just.mad.hatter@yandex.com or the name value of “Mad Hatter”. In both cases, an email sent by “Mad Hatter” with the address of just.mad.hatter@yandex.com will be filtered. |
Emails with parameters that strictly exclude the specified value. | Subject Email body Attachment name Header | If the Subject parameter has the value “madmen”, all emails that don't have the subjects like “We are all madmen” or “Different kinds of madmen” will be filtered. |
Emails with texts that match the specified value and don't contain it (whether standalone or in a phrase, the initial word and its word forms). | Email body | If the Email body parameter has the value “madmen”, all emails that don't contain the text like “We are all such different kinds of madmen” or “We are all madmen ” will be filtered. |
Email to filter | Applicable for parameters | Example of filtering |
---|---|---|
Email with parameters that strictly exclude the specified value (username or address). | To From Cc To or Сс | For example, when filtering the From parameter, you can either specify the address value of just.mad.hatter@yandex.com or the name value of “Mad Hatter”. In both cases, an email sent by “Mad Hatter” with the address of just.mad.hatter@yandex.com will be filtered. |
Emails with parameters that strictly exclude the specified value. | Subject Email body Attachment name Header | If the Subject parameter has the value “madmen”, all emails that don't have the subjects like “We are all madmen” or “Different kinds of madmen” will be filtered. |
Emails with texts that match the specified value and don't contain it (whether standalone or in a phrase, the initial word and its word forms). | Email body | If the Email body parameter has the value “madmen”, all emails that don't contain the text like “We are all such different kinds of madmen” or “We are all madmen ” will be filtered. |
Email to filter | Applicable for parameters | Example of filtering |
---|---|---|
Email with parameters that include the specified value or a phrase with that value in their username or address. | To From Cc To or Сс | When filtering the From parameter, you can either specify the address just.mad.hatter or the name “Mad Hatter”. In both cases, an email sent by “Mad Hatter” from the address just.mad.hatter@yandex.com will be in the the filter. |
Emails with parameters containing the specified value as part of a phrase and its word forms. | Subject Email body Attachment name Header | If the Subject parameter has the value “Green tea”, emails with the subjects like “Green tea” or “We drink black tea rather than green tea” will be filtered. Emails with the subjects “Tea from the Mad Hatter” and “Let's have some tea” will not be filtered. |
Emails with bodies matching the specified value (exact match or a phrase containing it, regardless of formatting). | Email body | If the Email body parameter has the value “mad”, emails containing the text “We're all mad in our own way” or “We're all mad” will also be filtered. |
Email to filter | Applicable for parameters | Example of filtering |
---|---|---|
Email with parameters that include the specified value or a phrase with that value in their username or address. | To From Cc To or Сс | When filtering the From parameter, you can either specify the address just.mad.hatter or the name “Mad Hatter”. In both cases, an email sent by “Mad Hatter” from the address just.mad.hatter@yandex.com will be in the the filter. |
Emails with parameters containing the specified value as part of a phrase and its word forms. | Subject Email body Attachment name Header | If the Subject parameter has the value “Green tea”, emails with the subjects like “Green tea” or “We drink black tea rather than green tea” will be filtered. Emails with the subjects “Tea from the Mad Hatter” and “Let's have some tea” will not be filtered. |
Emails with bodies matching the specified value (exact match or a phrase containing it, regardless of formatting). | Email body | If the Email body parameter has the value “mad”, emails containing the text “We're all mad in our own way” or “We're all mad” will also be filtered. |
Email to filter | Applicable for parameters | Example of filtering |
---|---|---|
Email with parameters that don't include the specified value or a phrase with the value in the username or address. | To From Cc To or Сс | When filtering the From parameter, you can either specify the address just.mad.hatter or the name “Mad Hatter”. In both cases, an email sent by “Mad Hatter” from the address just.mad.hatter@yandex.com will be included in the filter. |
Emails with parameters not containing the specified value and its word forms as part of a phrase. | Subject Email body Attachment name Header | If the Subject parameter has the value “Green tea”, emails with the subjects “Black tea” or “Today we're drinking tea” will be filtered. Emails with the subjects “Green tea” and “Let's have some green tea?” will not be filtered. |
Emails with bodies not matching the specified value (exact match or a phrase containing it, regardless of formatting). | Email body | If the Email body parameter has the value “We are all madmen”, all emails that don't contain the text like “We are madmen ” or “We are all such different kinds of madmen” will be filtered. |
Email to filter | Applicable for parameters | Example of filtering |
---|---|---|
Email with parameters that don't include the specified value or a phrase with the value in the username or address. | To From Cc To or Сс | When filtering the From parameter, you can either specify the address just.mad.hatter or the name “Mad Hatter”. In both cases, an email sent by “Mad Hatter” from the address just.mad.hatter@yandex.com will be included in the filter. |
Emails with parameters not containing the specified value and its word forms as part of a phrase. | Subject Email body Attachment name Header | If the Subject parameter has the value “Green tea”, emails with the subjects “Black tea” or “Today we're drinking tea” will be filtered. Emails with the subjects “Green tea” and “Let's have some green tea?” will not be filtered. |
Emails with bodies not matching the specified value (exact match or a phrase containing it, regardless of formatting). | Email body | If the Email body parameter has the value “We are all madmen”, all emails that don't contain the text like “We are madmen ” or “We are all such different kinds of madmen” will be filtered. |