diff options
Diffstat (limited to 'files/usr/local/etc/dovecot/report-spam.sieve.imap_server')
-rw-r--r-- | files/usr/local/etc/dovecot/report-spam.sieve.imap_server | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/files/usr/local/etc/dovecot/report-spam.sieve.imap_server b/files/usr/local/etc/dovecot/report-spam.sieve.imap_server new file mode 100644 index 0000000..d34c71b --- /dev/null +++ b/files/usr/local/etc/dovecot/report-spam.sieve.imap_server @@ -0,0 +1,7 @@ +require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; + +if environment :matches "imap.email" "*" { + set "email" "${1}"; +} + +pipe :copy "report-spam.sh" [ "${email}" ]; |