Merge pull request #1232 from mailcow/everycloud

rspamd: Fix NO_LOG_STAT for everycloud monitoring
master
André Peters 2018-04-02 19:28:02 +02:00 committed by GitHub
commit 96b80b3239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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