email: handle junk mails better

This commit is contained in:
silver 2023-10-24 18:53:06 +01:00
parent d2ece41ace
commit bb346e294f

View file

@ -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 = [