diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-31 21:06:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-31 21:06:11 +0100 |
commit | 77045b2a870f1968fb0f74789cbe7292039293af (patch) | |
tree | 824c54a47b5488fc5f36d183a74c290ca0688983 | |
parent | 95542aeae39418b05b3c79768b8af2a41517e12c (diff) | |
download | rspamd-77045b2a870f1968fb0f74789cbe7292039293af.tar.gz rspamd-77045b2a870f1968fb0f74789cbe7292039293af.zip |
[Minor] Dmarc: Least flag aleady implies the intended behaviour
-rw-r--r-- | src/plugins/lua/dmarc.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index 038a7de5d..eea0e795d 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -230,8 +230,7 @@ local function maybe_force_action(task, disposition) if disposition then 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 + -- Set least action task:set_pre_result(force_action, 'Action set by DMARC', N, nil, nil, 'least') end end |