X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fprivate%2Fmail%2Fsieve_scripts%2Freport_ham.sieve;h=f9b848152de3c7933fcfde84ba6262462657d42e;hb=a929614f94d11a4f397e72e74f38b3212c24cdee;hpb=53fa9f9e7d87835d6137a029fe80b3195e635797;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/mail/sieve_scripts/report_ham.sieve b/modules/private/mail/sieve_scripts/report_ham.sieve new file mode 100644 index 0000000..f9b8481 --- /dev/null +++ b/modules/private/mail/sieve_scripts/report_ham.sieve @@ -0,0 +1,11 @@ +require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; + +if environment :matches "imap.mailbox" "*" { + set "mailbox" "${1}"; +} + +if string "${mailbox}" "Trash" { + stop; +} + +pipe :copy "imapsieve_copy" [ "ham" ];