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";