aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-14 18:42:34 +0100
committerGitHub <noreply@github.com>2017-09-14 18:42:34 +0100
commit0fd5ec7e1e0da863189389cdd4746a2e2cae7f26 (patch)
tree586d30499d5f1de3eb3987eff017582bb041de16
parentfea677fcbfc963a92c2bb933acd79974d146808d (diff)
parentf40275e21b81476f22386068d978f72766149f8e (diff)
downloadrspamd-0fd5ec7e1e0da863189389cdd4746a2e2cae7f26.tar.gz
rspamd-0fd5ec7e1e0da863189389cdd4746a2e2cae7f26.zip
Merge pull request #1836 from realbugi/master
lua auth_results: authres header needs property for "policy". Make it as a comment for dmarc. Fixes some parsers.
-rw-r--r--lualib/auth_results.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lualib/auth_results.lua b/lualib/auth_results.lua
index 4a36e618b..1a907747b 100644
--- a/lualib/auth_results.lua
+++ b/lualib/auth_results.lua
@@ -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)