[Rspamd] Log mail that was put into junk folder and keep a copy in quarantine

This commit is contained in:
andryyy
2020-11-06 12:26:01 +01:00
parent 347217c2d3
commit 6d46ee795b
2 changed files with 6 additions and 12 deletions

View File

@@ -53,7 +53,9 @@ return function(task)
and not task:has_symbol('GLOBAL_RCPT_BL')
and not task:has_symbol('MAILCOW_BLACK') then
local action = task:get_metric_action('default')
return (action == 'reject')
if action == 'reject' or action == 'add header' then
return true
end
end
return false
end