From d241948034cc2f0dc9691520495f98bf84dd4338 Mon Sep 17 00:00:00 2001 From: Quentin Date: Fri, 27 Nov 2020 14:41:57 +0100 Subject: Add missing dovecot conf files --- app/build/dovecot/conf/report-ham.sieve | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/build/dovecot/conf/report-ham.sieve (limited to 'app/build/dovecot/conf/report-ham.sieve') diff --git a/app/build/dovecot/conf/report-ham.sieve b/app/build/dovecot/conf/report-ham.sieve new file mode 100644 index 0000000..c5a994a --- /dev/null +++ b/app/build/dovecot/conf/report-ham.sieve @@ -0,0 +1,17 @@ +require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables", "vnd.dovecot.debug"]; + +if environment :matches "imap.mailbox" "*" { + set "mailbox" "${1}"; +} + +if string "${mailbox}" "Trash" { + stop; +} + +if environment :matches "imap.user" "*" { + set "username" "${1}"; +} + +pipe :copy "sa-learn" [ "--ham", "-u", "debian-spamd" ]; +debug_log "ham reported by ${username}"; + -- cgit v1.2.3