commit 77045b2: [Minor] Dmarc: Least flag aleady implies the intended behaviour

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Jul 31 20:07:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-07-31 21:06:11 +0100
URL: https://github.com/rspamd/rspamd/commit/77045b2a870f1968fb0f74789cbe7292039293af (HEAD -> master)

[Minor] Dmarc: Least flag aleady implies the intended behaviour

---
 src/plugins/lua/dmarc.lua | 3 +--
 1 file changed, 1 insertion(+), 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


More information about the Commits mailing list