aboutsummaryrefslogtreecommitdiff
path: root/systems/eldiron/mail/sieve_scripts/report_ham.sieve
diff options
context:
space:
mode:
Diffstat (limited to 'systems/eldiron/mail/sieve_scripts/report_ham.sieve')
-rw-r--r--systems/eldiron/mail/sieve_scripts/report_ham.sieve11
1 files changed, 11 insertions, 0 deletions
diff --git a/systems/eldiron/mail/sieve_scripts/report_ham.sieve b/systems/eldiron/mail/sieve_scripts/report_ham.sieve
new file mode 100644
index 0000000..f9b8481
--- /dev/null
+++ b/systems/eldiron/mail/sieve_scripts/report_ham.sieve
@@ -0,0 +1,11 @@
1require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
2
3if environment :matches "imap.mailbox" "*" {
4 set "mailbox" "${1}";
5}
6
7if string "${mailbox}" "Trash" {
8 stop;
9}
10
11pipe :copy "imapsieve_copy" [ "ham" ];