diff options
-rw-r--r-- | hosts/surtr/email/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
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 { | |||
408 | auto = no | 408 | auto = no |
409 | special_use = \Trash | 409 | special_use = \Trash |
410 | } | 410 | } |
411 | mailbox Junk { | ||
412 | auto = no | ||
413 | special_use = \Junk | ||
414 | } | ||
411 | mailbox Drafts { | 415 | mailbox Drafts { |
412 | auto = no | 416 | auto = no |
413 | special_use = \Drafts | 417 | special_use = \Drafts |
@@ -529,7 +533,7 @@ in { | |||
529 | set "mailbox" "''${1}"; | 533 | set "mailbox" "''${1}"; |
530 | } | 534 | } |
531 | 535 | ||
532 | if not string "''${mailbox}" "Trash" { | 536 | if not anyof(string "''${mailbox}" "Trash", string "''${mailbox}" "Junk") { |
533 | pipe :copy "learn_ham.sh" [ "''${username}" ]; | 537 | pipe :copy "learn_ham.sh" [ "''${username}" ]; |
534 | } | 538 | } |
535 | } | 539 | } |