Explorar o código

rspamd: Fix NO_LOG_STAT for everycloud monitoring

Michael Kuron %!s(int64=7) %!d(string=hai) anos
pai
achega
ea3502f2a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      data/conf/rspamd/lua/rspamd.local.lua

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

@@ -118,7 +118,7 @@ rspamd_config:register_symbol({
   type = 'postfilter',
   callback = function(task)
     local from = task:get_header('From')
-    if from and (from == '[email protected]' or from == 'watchdog@localhost') then
+    if from and (string.find(from, '[email protected]', 1, true) or from == 'watchdog@localhost') then
       task:set_flag('no_log')
       task:set_flag('no_stat')
     end