Merge pull request #1232 from mailcow/everycloud
rspamd: Fix NO_LOG_STAT for everycloud monitoring
This commit is contained in:
		@@ -118,7 +118,7 @@ rspamd_config:register_symbol({
 | 
				
			|||||||
  type = 'postfilter',
 | 
					  type = 'postfilter',
 | 
				
			||||||
  callback = function(task)
 | 
					  callback = function(task)
 | 
				
			||||||
    local from = task:get_header('From')
 | 
					    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_log')
 | 
				
			||||||
      task:set_flag('no_stat')
 | 
					      task:set_flag('no_stat')
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user