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