We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.24.2.1.1.5. Description of WebMail filters

Filters in WebMail are implemented using the Sieve language, which in turn allows you to very flexibly configure the desired filtering of letters and the response to them. For more convenient formation of rules, there is a visual editor. You can use it by this instructions.

The Sieve language allows you to configure filtering for almost any email header. To do this, you can use existing conditions or specify the required header manually. Types of data to compare:

A type Description Heading
«Theme» Search by title subject subject
«From» Search by title from from
«Towhom» Search by title to to
«» Search by manual title. After selection, an additional field will appear for specifying the title
«Body of the letter» Search by letter text
«The size» Comparison of the size of the entire letter and its attachments
«Date» Search by title Date Date
«The current date» Comparison of the current date or time. The date is taken according to Kiev time GMT + 3
«Line» Comparison of the variables passed in the letter. After selection, an additional field will appear for specifying the title
«Message» Duplicate emails detection

In addition to the many types of data being compared, it is also necessary to choose a comparison method:

A type Description Parameter to Sieve
For all data types except "The size», «Message»:
«contains» Search for specified text in incoming data :contain
«does not contain»
«corresponds» Full match of incoming data with those specified in the filter :is
«does not match»
«exists» Checking the existence of the selected type of incoming data exists
«does not exist»
«matches expression» Search for the specified text in the incoming data, but with the ability to specify wildcards in the form: * - any number of any characters, ? - any one character :matches
«does not match expression»
«matches regular expression» Finding text using regular expression :regex
«does not match regular expression»
«the amount is greater than» Counting the specified headers in the letter and comparing their number with the specified data :count
«quantity is greater than or equal»
«the amount is less than»
«quantity less than or equal»
«the amount is»
«quantity is not equal»
«the value is greater than» Mathematical comparison of header value with specified data :value
«value is greater than or equal»
«value less than»
«value less than or equal»
«value is»
«value is not equal»
For data types "Date», «The current date»An additional parameter will appear with the choice of the data type of the date field:
«date (yyyy-mm-dd)» Date in the standard form "Year-month-day" "date"
«date (ISO8601)» Date as standard ISO 8601 as year-month-day Th hour: minute: second + time zone or 2025-01-21T11:21:44+0300 "iso8601"
«date (RFC2822)» Date subject to agreement RFC2822 as Day of the week, day month year hour: minute: second: time standard or Tue, 07 Feb 1984 12:34:56 GMT "std11"
«date (Julian)» The number of days that have passed since January 1, 4713 BC "julian"
«time (hh: mm: ss)» Time in hours: minutes: seconds "time"
«year » Determining one data type from an entire date "year"
«month » "month"
«day » "day"
«hour » "hour"
«minute » "minute"
«second » "second"
«day of the week (0-6)» Day of the week, where 0 is Monday and 6 is Sunday "weekday"
«Timezone» The definition of the time zone is indicated exclusively according to RFC2822, that is, in the form of 4 digits, where +\-HourHourMinuteMinute, eg 0300 "zone"

Sieve has a huge variety of actions with letters, which allows you to configure flexible handling of incoming mail:

Act Description Options Function in Sieve
«Move message to» Moving a message to a specific folder without saving it to the current one Choosing a catalog from existing ones fileinto
«Copy message to» Copying a message to a specific folder fileinto :copy
«Redirect message to» Forward the letter to another mailbox without saving in the current one Specifying the target mailbox redirect
«Send a copy of the message to» Forward a copy of the letter to another mailbox with saving in the current redirect :copy
«Discard with message» Do not save the letter in the mailbox and reply to it automatically The text of the sent response to the letter reject
«Reply with message» Save a letter in a mailbox and reply to it (analogue of an answering machine) Response text to send
Message subject (header subject)
Sender return address (header from) - be sure to specify the same mailbox for which filters are configured
My email addresses mail - a list of additional addresses to which you can send a message
How often to send messages - the frequency of sending replies to messages from unique mailboxes, that is, if 2 messages are sent from the admin@example.com mailbox during the day - an automatic reply will be sent only once
vacation with parameters: :days, :addresses, :subject, :from
«Delete message» Deleting a message, while the sender's server will not know about it discard
«Set flags on a message» Set certain flags on messages, removing the previous ones Selecting available and previously created flags setflag
«Add flags to post» Set certain flags on messages by adding to the previous ones addflag
«Remove flags from message» Remove previously set flags for a message removeflag
«Set variable» setting a specific variable for its further use Variable name
Variable value
Modifiers applied to a variable
set
«Send notification» Send a separate notification to a specific mailbox The notification object is the recipient's mailbox
Notification message
Notification sender (header from) Is an optional parameter and does not need to be specified
Importance
Notification parameters - additional parameters that will be specified in the notification
notify with parameters: :importance, :from, :message
«Leave a message in the Inbox» Don't move the message to other folders and keep it in the inbox keep
«End execution» End execution of all active filters. The function interrupts the execution of the filter chain - only filters before this action will be executed, subsequent ones will not be executed stop