You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
2.3 KiB
Sieve
112 lines
2.3 KiB
Sieve
require ["body","fileinto","imap4flags"];
|
|
# rule:[ras4et]
|
|
if header :contains "subject" "Расчётный листок"
|
|
{
|
|
fileinto "040_ras4et";
|
|
addflag "\\Flagged";
|
|
stop;
|
|
}
|
|
# rule:[jenkins]
|
|
if anyof (header :contains "from" "ESR Jenkins", body :text :contains "ESR Jenkins обновил", body :text :contains "была обновлена (ESR Jenkins)")
|
|
{
|
|
fileinto "140_others/Jenkins";
|
|
stop;
|
|
}
|
|
# rule:[time]
|
|
if header :contains "subject" "Уведомление по отработанному времени"
|
|
{
|
|
fileinto "140_others/Time";
|
|
addflag "\\Flagged";
|
|
stop;
|
|
}
|
|
# rule:[wiki]
|
|
if header :contains "subject" "Wiki-страница"
|
|
{
|
|
fileinto "040_wiki";
|
|
stop;
|
|
}
|
|
# rule:[gitlab jenkins]
|
|
if allof (header :contains "from" "gitlab", header :contains "from" "Jenkins")
|
|
{
|
|
fileinto "100_gitlab/050_auto";
|
|
}
|
|
# rule:[gitlab base]
|
|
if header :contains "subject" "ESR Base"
|
|
{
|
|
fileinto "100_gitlab/020_base";
|
|
stop;
|
|
}
|
|
# rule:[gitlab kernel]
|
|
if header :contains "subject" "ESR Kernel"
|
|
{
|
|
fileinto "100_gitlab/010_kernel";
|
|
stop;
|
|
}
|
|
# rule:[sWLC]
|
|
if header :contains "subject" "SoftWLC"
|
|
{
|
|
fileinto "140_others/SoftWLC";
|
|
stop;
|
|
}
|
|
# rule:[esrwlc]
|
|
if header :contains "subject" "ESR:WLC"
|
|
{
|
|
fileinto "140_others/WLC";
|
|
stop;
|
|
}
|
|
# rule:[ECCM]
|
|
if header :contains "subject" "ECCM"
|
|
{
|
|
fileinto "140_others/ECCM";
|
|
stop;
|
|
}
|
|
# rule:[gitlab all other]
|
|
if header :contains "from" "gitlab"
|
|
{
|
|
fileinto "100_gitlab";
|
|
stop;
|
|
}
|
|
# rule:[hr]
|
|
if header :contains "subject" "Программисты, инженеры HW"
|
|
{
|
|
fileinto "110_HR";
|
|
stop;
|
|
}
|
|
# rule:[моё]
|
|
if body :text :contains "Сергей Маринкевич"
|
|
{
|
|
fileinto "010_my";
|
|
stop;
|
|
}
|
|
# rule:[пиздюки]
|
|
if anyof (body :text :contains "Тимур Сайботалов", body :text :contains "Олег Сердитов", body :text :contains "Андрей Журавлёв")
|
|
{
|
|
fileinto "020_piecedukes";
|
|
stop;
|
|
}
|
|
# rule:[new]
|
|
if header :contains "subject" "(New)"
|
|
{
|
|
fileinto "060_new";
|
|
stop;
|
|
}
|
|
# rule:[Closed]
|
|
if header :contains "subject" "(Closed)"
|
|
{
|
|
fileinto "070_closed";
|
|
stop;
|
|
}
|
|
# rule:[версии]
|
|
if header :contains "subject" "- версия:"
|
|
{
|
|
fileinto "140_versions";
|
|
stop;
|
|
}
|
|
# rule:[mailings]
|
|
if allof (not header :contains "from" "red.eltex.loc", not header :contains "from" "gitlab")
|
|
{
|
|
fileinto "050_mailings";
|
|
setflag "\\Flagged";
|
|
stop;
|
|
}
|