Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
4.3.2.1.5. Description of WebMail classic filters
In WebMail classic, filters are implemented using the Sieve language, which in turn allows very flexible configuration of required email filtering and responses to them. For more convenient rule creation, a visual editor is available. You can use it by following this instruction.
Conditions
The Sieve language allows you to configure filtering by virtually any email header. To do this, you can use existing conditions or specify the required header manually. Types of comparable data:
| Type | Description | Header |
|---|---|---|
| "Subject" | Search by subject header | subject |
| "Sender" | Search by from header | from |
| "Recipient" | Search by to header | to |
| "…" | Search by manually specified title. After selection, an additional field appears to specify title | — |
| "Message body" | Search by message text | — |
| "Size" | Comparing the size of the whole message and its attachments | — |
| "Date" | Search by Date header | Date |
| "Current date" | Comparison of the current date or time. Date is taken according to Kiev time GMT+3 | — |
| "Line" | Comparison of variables passed in the message. After selection, an additional field for specifying the title will appear | — |
| "Message" | Detecting duplicate messages | — |
In addition to multiple comparable data types, you must also select comparison method:
| Type | Description | Parameter in Sieve |
|---|---|---|
| For all data types except "Size", "Message": | ||
| "contains" | Search for specified text in incoming data | :contain |
| "does not contain" | ||
| "matches" | Full match of incoming data with the data 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 specified text in incoming data, but with the ability to specify wildcards in the form: * — any number of any characters, ? — any single character | :matches |
| "does not match expression" | ||
| "match regular expression" | Search for text using a regular expression | :regex |
| "does not match regular expression" | ||
| "quantity greater than" | Counting the specified headings in the message and comparing their number with the specified data | :count |
| "quantity greater than or equal" | ||
| "quantity less than" | ||
| "quantity less than or equal" | ||
| "quantity equal" | ||
| "quantity not equal" | ||
| "value greater than" | Mathematical comparison of the header value with the specified data | :value |
| "value greater than or equal" | ||
| "value less than" | ||
| "value less than or equal" | ||
| "value equal" | ||
| "value not equal" | ||
| For data types "Date", "Current date", an additional parameter will appear with the date field data type selection: | ||
| "date (yyyy-mm-dd)" | Date in standard form "Year-month-day" | "date" |
| "date (ISO8601)" | Date in ISO 8601 standard form year-month-dayThour:minute:second+timezone or 2025-01-21T11:21:44+0300 | "iso8601" |
| "date (RFC2822)" | Date considering the RFC2822 agreement as Weekday, 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 B.C. | "julian" |
| "time (hh:mm:ss)" | Time in hours:minutes:seconds | "time" |
| "year" | Determine one data type from the entire date | "year" |
| "month" | "month" |
|
| "day" | "day" |
|
| "hour" | "hour" |
|
| "minute" | "minute" |
|
| "second" | "second" |
|
| "weekday (0-6)" | Weekday, where 0 is Monday and 6 is Sunday | "weekday" |
| "timezone" | Definition of timezone, specified exclusively according to RFC2822, i.e. as 4 digits where +\-HourHourMinuteMinute, e.g. 0300 | "zone" |
Actions
Sieve provides a vast number of email action variations, which enables flexible incoming mail processing:
| Action | Description | Parameters | Function in Sieve |
|---|---|---|---|
| "Move message to" | Move a message to a specific folder without saving it in the current one | Select a folder from the existing ones | fileinto |
| "Copy message to" | Copy a message to a specific folder | fileinto :copy |
|
| "Redirect message to" | Redirect a message to another mailbox without saving it in the current mailbox | Specify the target mailbox | redirect |
| "Send copy of message to" | Redirect a copy of a message to another mailbox and save it in the current mailbox | redirect :copy |
|
| "Bounce with message" | Do not save a message in the mailbox and reply to it automatically | Text of the message reply to be sent | reject |
| "Reply with message" | Save a message in the mailbox and reply to it ( analog of the autoresponder) | Text of the reply to be sent Subject of the message ( subject header)Sender's return address ( from header) — be sure to specify the same box for which filters are configuredMy email addresses — list of additional addresses to which you can send a message How frequently to send messages — frequency of replies to messages from unique mailboxes, i.e. if 2 messages are sent from admin@example.com during the day — an automatic reply will be sent only once. | vacation with parameters: :days, :addresses, :subject, :from |
| "Delete message" | Delete a message without the sender's server being aware of it | — | discard |
| "Set flags on message" | Set specific flags on messages by removing previous flags | Select available and previously created flags | setflag |
| "Add flags to message" | 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" | Assign a specific variable for its further use | Variable name Variable value Modifiers applied to variable | set |
| "Send notification" | Send a separate notification to a specific mailbox | Notification object — recipient mailbox Notification message Notification sender ( from header) — optional parameter, no need to specify itImportance Notification parameters — additional parameters that will be specified in notification | notify with parameters: :importance, :from, :message |
| "Leave message in Inbox" | Do not move the message to other folders and leave it in your inbox | — | keep |
| "Finish executing" | Finish execution of all active filters. The function interrupts execution of the filter chain — only the filters before this action will be executed, the subsequent filters will not be executed | — | stop |