aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-09-07 19:18:42 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-09-07 19:18:42 +0200
commit83589dab631f96bbc0e15958dc000af3750b88de (patch)
treefaf3a149acce425e4ea709dbb3d1e2687aea9966 /lualib
parent3720063daf614e0c252040bc6fd71a418f826aac (diff)
downloadrspamd-83589dab631f96bbc0e15958dc000af3750b88de.tar.gz
rspamd-83589dab631f96bbc0e15958dc000af3750b88de.zip
[Fix] Auth-Results: Multiple DKIM signatures
Diffstat (limited to 'lualib')
-rw-r--r--lualib/auth_results.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lualib/auth_results.lua b/lualib/auth_results.lua
index e706291c4..8f7e67553 100644
--- a/lualib/auth_results.lua
+++ b/lualib/auth_results.lua
@@ -133,13 +133,14 @@ local function gen_auth_results(task, settings)
end
table.insert(hdr_parts, hdr)
elseif auth_type == 'dkim' and key ~= 'none' then
+ local dkim_parts = {}
if common.symbols[auth_types['dkim'][key]][1] then
local opts = common.symbols[auth_types['dkim'][key]][1]['options']
for _, v in ipairs(opts) do
- hdr = hdr .. auth_type .. '=' .. key .. ' header.d=' .. v
- table.insert(hdr_parts, hdr)
+ table.insert(dkim_parts, auth_type .. '=' .. key .. ' header.d=' .. v)
end
end
+ table.insert(hdr_parts, table.concat(dkim_parts, '; '))
elseif auth_type == 'arc' and key ~= 'none' then
if common.symbols[auth_types['arc'][key]][1] then
local opts = common.symbols[auth_types['arc'][key]][1]['options'] or {}