]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Auth-Results: Multiple DKIM signatures
authorAndrew Lewis <nerf@judo.za.org>
Thu, 7 Sep 2017 17:18:42 +0000 (19:18 +0200)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 9 Sep 2017 11:30:34 +0000 (12:30 +0100)
lualib/auth_results.lua

index e706291c4cf1bfeffcf13502409662198a7d45a0..8f7e675532e64c1aa6b4e3646a29335cecf2a664 100644 (file)
@@ -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 {}