2.19.2.1.1.5. Description of WebMail.Online filters

Filters in WebMail.Online are implemented using the Sieve language, which allows you to flexibly configure the desired filtering of messages and respond to them. For a more convenient formation of rules, there is visual editor.

Sieve allows you to set up filtering for almost any email header. During the setup process, you can use existing conditions or specify the desired title manually.

Compared data types:

Type Description heading
«Theme» Search by title subject subject
«From» Search by title from from
«Towhom» Search by title to to
«Body of the letter» Search in the text of the letter
«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, you also need to choose a comparison method:

Type Description Parameter to Sieve
For all data types except «Size», «Message»:
«contains» Search for the specified text in the incoming data :contain
«does not contain»
«correspondsto» 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 regex»
«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»
«value is greater than» Mathematical comparison of the header value with the specified data :value
«value is greater than or equal»
«value less than»
«value less than or equal»
«the value is»
«value is not equal»
For data types «Date», «The current date» an additional parameter will appear with a choice of the data type of the date field:
«date (yyyy-mm-dd)» Date in standard form «Year-month-day» "date"
«date (ISO8601)» Date according to 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, for example 0300 "zone"

In Sieve, there are many variations of actions with letters for flexible settings for processing incoming mail:

Action 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 autoresponder) The text of the response to be sent
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
«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
Content