From 7a2abe6adab0834616bd0f55cb9194ca4c2696bb Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 19 Dec 2016 15:20:30 +0100 Subject: [PATCH] Add default sieve_after handler --- data/conf/dovecot/sieve_after | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 data/conf/dovecot/sieve_after diff --git a/data/conf/dovecot/sieve_after b/data/conf/dovecot/sieve_after new file mode 100644 index 00000000..ae6aa5fe --- /dev/null +++ b/data/conf/dovecot/sieve_after @@ -0,0 +1,12 @@ +require "fileinto"; +require "mailbox"; +require "variables"; +require "subaddress"; +require "envelope"; + +if header :contains "X-Spam-Flag" "YES" { + fileinto "Junk"; +} +if envelope :detail :matches "to" "*" { + fileinto :create "INBOX/${1}"; +}