diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-11 21:29:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-11 21:29:38 +0100 |
commit | 7f169bd819f5b35cd3237308b3e4441cc02934ff (patch) | |
tree | c869e81f511cab45c9a05bc38474178287925c09 /src/plugins/lua/dmarc.lua | |
parent | bea63400ba9563eaed7bc7f02da6e4294fba1da8 (diff) | |
download | rspamd-7f169bd819f5b35cd3237308b3e4441cc02934ff.tar.gz rspamd-7f169bd819f5b35cd3237308b3e4441cc02934ff.zip |
[Minor] Avoid pre-result overriding
Diffstat (limited to 'src/plugins/lua/dmarc.lua')
-rw-r--r-- | src/plugins/lua/dmarc.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index 53ece7aa4..a7f53b6b2 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -198,6 +198,8 @@ local function dmarc_callback(task) local function maybe_force_action(disposition) local force_action = dmarc_actions[disposition] if force_action then + -- Don't do anything if pre-result has been already set + if task:has_pre_result() then return end task:set_pre_result(force_action, 'Action set by DMARC') end end |