From d486c233b033cd227e758cf780a1ad5e5b2043b0 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 10 May 2022 14:56:00 +0200 Subject: surtr: ... --- hosts/surtr/email/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hosts') diff --git a/hosts/surtr/email/default.nix b/hosts/surtr/email/default.nix index 980ee52f..acda2b2f 100644 --- a/hosts/surtr/email/default.nix +++ b/hosts/surtr/email/default.nix @@ -408,6 +408,10 @@ in { auto = no special_use = \Trash } + mailbox Junk { + auto = no + special_use = \Junk + } mailbox Drafts { auto = no special_use = \Drafts @@ -529,7 +533,7 @@ in { set "mailbox" "''${1}"; } - if not string "''${mailbox}" "Trash" { + if not anyof(string "''${mailbox}" "Trash", string "''${mailbox}" "Junk") { pipe :copy "learn_ham.sh" [ "''${username}" ]; } } -- cgit v1.2.3