]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add nojunk folder to classify hams
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 2 Jan 2020 18:27:33 +0000 (19:27 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 2 Jan 2020 18:27:33 +0000 (19:27 +0100)
modules/private/mail/dovecot.nix

index 16053ea5cad50e51b70b3411db29e90657cb9497..4facef588478f6424c13c3778908472c410d5fad 100644 (file)
@@ -141,6 +141,11 @@ in
             imapsieve_mailbox2_causes = COPY
             imapsieve_mailbox2_before = file:${./sieve_scripts}/report_ham.sieve;bindir=/var/lib/vhost/.imapsieve_bin
 
+            # From anywhere to NoJunk folder
+            imapsieve_mailbox3_name = NoJunk
+            imapsieve_mailbox3_causes = COPY APPEND
+            imapsieve_mailbox3_before = file:${./sieve_scripts}/report_ham.sieve;bindir=/var/lib/vhost/.imapsieve_bin
+
             sieve_pipe_bin_dir = ${sieve_bin}
 
             sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment