From: Andrew Lewis Date: Thu, 15 Dec 2016 10:43:44 +0000 (+0200) Subject: [Minor] Rmilter_headers: Fix reason/header.from fields X-Git-Tag: 1.5.0~571^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1266%2Fhead;p=thirdparty%2Frspamd.git [Minor] Rmilter_headers: Fix reason/header.from fields --- diff --git a/src/plugins/lua/rmilter_headers.lua b/src/plugins/lua/rmilter_headers.lua index 98a778058a..12d8d5147f 100644 --- a/src/plugins/lua/rmilter_headers.lua +++ b/src/plugins/lua/rmilter_headers.lua @@ -189,7 +189,9 @@ routines['authentication-results'] = function(task, common_meta) hdr = hdr .. ' policy=' .. common_meta.symbols[auth_types['dmarc'][key]][1]['options'][2] hdr = hdr .. ' header.from=' .. common_meta.symbols[auth_types['dmarc'][key]][1]['options'][1] elseif key ~= 'none' then - local dom, rsn = rspamd_str_split(common_meta.symbols[auth_types['dmarc'][key]][1]['options'][1], ' : ') + local t = rspamd_str_split(common_meta.symbols[auth_types['dmarc'][key]][1]['options'][1], ' : ') + local dom = t[1] + local rsn = t[2] hdr = hdr .. ' reason="' .. rsn .. '"' hdr = hdr .. ' header.from=' .. dom if key == 'softfail' then