1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-11-28 08:52:00 +02:00

rspamd: Fix NO_LOG_STAT for everycloud monitoring

This commit is contained in:
Michael Kuron 2018-04-02 19:26:15 +02:00 committed by GitHub
parent 8d55f066a8
commit ea3502f2a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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