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" {
|
||||
fileinto :create "''${1}.Spam_Report";
|
||||
stop;
|
||||
} else {
|
||||
}
|
||||
|
||||
# user+subdir
|
||||
if address :matches ["To", "Cc"] "*+*@skynet.ie" {
|
||||
fileinto :create "''${1}.''${2}";
|
||||
stop;
|
||||
}
|
||||
|
||||
# no detail, proceed normally
|
||||
if address :detail ["To", "Cc"] "" {
|
||||
if header :is "X-Spam" "Yes" {
|
||||
fileinto :create "''${1}.Junk";
|
||||
stop;
|
||||
|
@ -128,14 +134,6 @@ with lib; let
|
|||
fileinto :create "''${1}";
|
||||
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