email: handle junk mails better
This commit is contained in:
parent
d2ece41ace
commit
bb346e294f
1 changed files with 6 additions and 1 deletions
|
@ -111,7 +111,12 @@ with lib; let
|
|||
address :domain ["To"] "skynet.ie"
|
||||
){
|
||||
if address :matches ["To"] "*@skynet.ie" {
|
||||
fileinto :create "''${1}";
|
||||
if header :is "X-Spam" "Yes" {
|
||||
fileinto :create "''${1}.Junk";
|
||||
stop;
|
||||
} else {
|
||||
fileinto :create "''${1}";
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue