fix: simplify sieve script
This commit is contained in:
parent
575a617a10
commit
14732ead0f
1 changed files with 14 additions and 16 deletions
|
@ -118,9 +118,15 @@ with lib; let
|
||||||
if address :matches ["From"] "postmaster@mimi.skynet.ie" {
|
if address :matches ["From"] "postmaster@mimi.skynet.ie" {
|
||||||
fileinto :create "''${1}.Spam_Report";
|
fileinto :create "''${1}.Spam_Report";
|
||||||
stop;
|
stop;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
# user+subdir
|
||||||
|
if address :matches ["To", "Cc"] "*+*@skynet.ie" {
|
||||||
|
fileinto :create "''${1}.''${2}";
|
||||||
|
stop;
|
||||||
|
}
|
||||||
|
|
||||||
# no detail, proceed normally
|
# no detail, proceed normally
|
||||||
if address :detail ["To", "Cc"] "" {
|
|
||||||
if header :is "X-Spam" "Yes" {
|
if header :is "X-Spam" "Yes" {
|
||||||
fileinto :create "''${1}.Junk";
|
fileinto :create "''${1}.Junk";
|
||||||
stop;
|
stop;
|
||||||
|
@ -128,14 +134,6 @@ with lib; let
|
||||||
fileinto :create "''${1}";
|
fileinto :create "''${1}";
|
||||||
stop;
|
stop;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
# user+subdir
|
|
||||||
if address :matches ["To", "Cc"] "*+*@skynet.ie" {
|
|
||||||
fileinto :create "''${1}.''${2}";
|
|
||||||
stop;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue