commit a1c1567: [Fix] Set dmarc force action as least action

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Apr 29 11:21:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-29 11:41:14 +0100
URL: https://github.com/rspamd/rspamd/commit/a1c156778f4764114bc0b178d646b9882fcf9916

[Fix] Set dmarc force action as least action

---
 src/plugins/lua/dmarc.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index 57031f076..8c22f84b2 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -205,7 +205,7 @@ local function maybe_force_action(task, 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', N)
+      task:set_pre_result(force_action, 'Action set by DMARC', N, nil, nil, 'least')
     end
   end
 end


More information about the Commits mailing list