From 0b9afe56e236fb9841e697a244e8e0e2ba01945f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 9 Mar 2017 12:27:39 +0100 Subject: [PATCH] Ignore moves from junkmail to Junk (and from Junk to junkmail) --- root/usr/libexec/dovecot/sieve/report-ham.sieve | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/usr/libexec/dovecot/sieve/report-ham.sieve b/root/usr/libexec/dovecot/sieve/report-ham.sieve index 0fc1747..d6a1b2e 100644 --- a/root/usr/libexec/dovecot/sieve/report-ham.sieve +++ b/root/usr/libexec/dovecot/sieve/report-ham.sieve @@ -2,7 +2,9 @@ require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; if environment :matches "imap.mailbox" "*" { set "mailbox" "${1}"; } -if string "${mailbox}" "Trash" { +if anyof (string "${mailbox}" "Trash", + string "${mailbox}" "junkmail", + string "${mailbox}" "Junk") { stop; } pipe :copy "learn-ham.sh";