]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Set dmarc force action as least action
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 29 Apr 2019 10:41:14 +0000 (11:41 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 29 Apr 2019 10:41:14 +0000 (11:41 +0100)
src/plugins/lua/dmarc.lua

index 57031f0766b94273adef04ebc621b2f449041454..8c22f84b23685d0251a4c65c07fa11d588eb773f 100644 (file)
@@ -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