diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-04 21:59:59 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-04 21:59:59 -0400 |
commit | 1e088983f6a80b6fd47543d0b4989e9ddb3234d5 (patch) | |
tree | 16af4205d84c9194257887e5e54653f79e96f987 /files/usr/local/etc/dovecot/report-ham.sieve.imap_server | |
parent | a1bddcb1de1053994fb445267ca5d1ffaecb0fb5 (diff) | |
download | infrastructure-1e088983f6a80b6fd47543d0b4989e9ddb3234d5.tar.gz |
add imap stuff
Diffstat (limited to 'files/usr/local/etc/dovecot/report-ham.sieve.imap_server')
-rw-r--r-- | files/usr/local/etc/dovecot/report-ham.sieve.imap_server | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/files/usr/local/etc/dovecot/report-ham.sieve.imap_server b/files/usr/local/etc/dovecot/report-ham.sieve.imap_server new file mode 100644 index 0000000..578e7b2 --- /dev/null +++ b/files/usr/local/etc/dovecot/report-ham.sieve.imap_server @@ -0,0 +1,15 @@ +require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; + +if environment :matches "imap.mailbox" "*" { + set "mailbox" "${1}"; +} + +if string "${mailbox}" "Trash" { + stop; +} + +if environment :matches "imap.email" "*" { + set "email" "${1}"; +} + +pipe :copy "report-ham.sh" [ "${email}" ]; |