]> source.dussan.org Git - rspamd.git/commitdiff
lua auth_results: authres header needs property for "policy". Make it as a comment... 1836/head
authorBuGi <bugi@nicelan.tk>
Thu, 14 Sep 2017 12:33:49 +0000 (14:33 +0200)
committerBuGi <bugi@nicelan.tk>
Thu, 14 Sep 2017 12:33:49 +0000 (14:33 +0200)
Signed-off-by: BuGi <bugi@aloneinthespace.cf>
lualib/auth_results.lua

index 4a36e618bc6c7461873871279262545f460d6b80..1a907747ba6f59e810efc032a8a493cde5b922e8 100644 (file)
@@ -116,7 +116,7 @@ local function gen_auth_results(task, settings)
           hdr = hdr .. key
         end
         if key == 'pass' then
-          hdr = hdr .. ' policy=' .. opts[2]
+          hdr = hdr .. ' (policy=' .. opts[2] .. ')'
           hdr = hdr .. ' header.from=' .. opts[1]
         elseif key ~= 'none' then
           local t = global.rspamd_str_split(opts[1], ' : ')
@@ -127,9 +127,9 @@ local function gen_auth_results(task, settings)
           end
           hdr = hdr .. ' header.from=' .. dom
           if key == 'softfail' then
-            hdr = hdr .. ' policy=none'
+            hdr = hdr .. ' (policy=none)'
           else
-            hdr = hdr .. ' policy=' .. key
+            hdr = hdr .. ' (policy=' .. key .. ')'
           end
         end
         table.insert(hdr_parts, hdr)