Browse Source

Sieve tag handling changes

andryyy 8 years ago
parent
commit
be7693a8e1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      data/conf/dovecot/sieve_after
  2. 1 1
      data/conf/rspamd/lua/rspamd.local.lua

+ 1 - 1
data/conf/dovecot/sieve_after

@@ -7,6 +7,6 @@ require "envelope";
 if header :contains "X-Spam-Flag" "YES" {
   fileinto "Junk";
 }
-if envelope :detail :matches "to" "*" {
+if allof (envelope :detail :matches "to" "*", header :contains "X-Moo-Tag" "YES") {
   fileinto :create "INBOX/${1}";
 }

+ 1 - 1
data/conf/rspamd/lua/rspamd.local.lua

@@ -48,7 +48,7 @@ rspamd_config.ADD_DELIMITER_TAG = {
         })
         end
       else
-        rspamd_logger.infox("Add X-Move-Tag header")
+        rspamd_logger.infox("Add X-Moo-Tag header")
         task:set_rmilter_reply({
           add_headers = {['X-Moo-Tag'] = 'YES'}
         })