Sieve is used as a mail filter (http://en.wikipedia.org/wiki/Sieve )
The mailbox directory contains the file .dovecot.sieve containing scripts files (in each condition and corresponding action) from the directory .sieve/ and in the mailbox directory.
Into each script into the heading the instruction for activating all the commands that are added in the control panel is specified:
require ["fileinto","reject","vacation","regex","envelope","relational","body","copy"]
Example
The script "testscript" for the mailbox aaa@test.dom of the user checks the following: if in the message headings "Header" or "Subject" "AAA", "BBB", "ССС" are not found or the message size is more than 1 MB, the message will be sent to bbb@test.dom, and do not save it in aaa@test.dom.
Once the filter script is created in the control panel, the file will contain the following:
/var/www/user/data/email/test.dom/aaa/.dovecot.sieve:
require ["include"];
include :personal "testscript";
/var/www/user/data/email/test.dom/aaa/.sieve/testscript.sieve:
if anyof ( not header :contains ["Header","Subject"] ["AAA","BBB","CCC"],
size :over 1024K
) { redirect "bbb@test.dom";
discard;
}
The first condition (each condition starts in a new paragraph comma separated between '(' and ')'):
The second condition:
The first action (each action are specified in a new paragraph comma separated between '{' and '}'):
The second action: