Ignore moves from junkmail to Junk (and from Junk to junkmail)

tags/smeserver-dovecot-extras-0.1.4-1 0.1.2_el5
Daniel Berteaud 8 years ago
parent 6e370105c5
commit 0b9afe56e2
  1. 4
      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";

Loading…
Cancel
Save