From a7a7b8489a34f649e27fed2088ef600810793e75 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Tue, 13 May 2025 14:49:35 +0100 Subject: [PATCH] fix: sieve script had errors involving teh if else --- applications/email.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/applications/email.nix b/applications/email.nix index 2341952..72fd7ea 100644 --- a/applications/email.nix +++ b/applications/email.nix @@ -117,19 +117,21 @@ with lib; let if address :matches ["From"] "postmaster@mimi.skynet.ie" { fileinto :create "''${1}.Spam_Report"; stop; - } else if header :is "X-Spam" "Yes" { - fileinto :create "''${1}.Junk"; - stop; } else { - fileinto :create "''${1}"; - stop; + if header :is "X-Spam" "Yes" { + fileinto :create "''${1}.Junk"; + stop; + } else { + fileinto :create "''${1}"; + stop; + } } } } # handle spam Reports for general users if address :matches ["From"] "postmaster@mimi.skynet.ie" { - fileinto :create "INBOX..Spam_Report"; + fileinto :create "INBOX.Spam_Report"; stop; }