diff --git a/applications/email.nix b/applications/email.nix index 924d7ec..05ee8d0 100644 --- a/applications/email.nix +++ b/applications/email.nix @@ -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}"; + } } } '';