diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-14 16:34:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-14 16:34:35 +0100 |
commit | 6e499f9f0c0c4ed4b35183efafd249b1d795feeb (patch) | |
tree | b0314249392b52fbe96faa68e01cc87541a9652b /lualib/lua_auth_results.lua | |
parent | 8f7a43d5a44ffe9e8ba5343406ef3682bf57fe86 (diff) | |
download | rspamd-6e499f9f0c0c4ed4b35183efafd249b1d795feeb.tar.gz rspamd-6e499f9f0c0c4ed4b35183efafd249b1d795feeb.zip |
[Fix] Fix several issues with auth results producing
Diffstat (limited to 'lualib/lua_auth_results.lua')
-rw-r--r-- | lualib/lua_auth_results.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lualib/lua_auth_results.lua b/lualib/lua_auth_results.lua index 7c50a0c49..2c121dc65 100644 --- a/lualib/lua_auth_results.lua +++ b/lualib/lua_auth_results.lua @@ -173,9 +173,9 @@ local function gen_auth_results(task, settings) local dom = t[1] local rsn = t[2] if rsn then - hdr = hdr .. ' reason="' .. lua_util.maybe_smtp_quote_value(rsn) .. '"' + hdr = string.format('%s reason=%s', hdr, lua_util.maybe_smtp_quote_value(rsn)) end - hdr = hdr .. ' header.from=' .. lua_util.maybe_smtp_quote_value(dom) + hdr = string.format('%s header.from=%s', hdr, lua_util.maybe_smtp_quote_value(dom)) end if key == 'softfail' then hdr = hdr .. ' (policy=none)' @@ -197,7 +197,7 @@ local function gen_auth_results(task, settings) -- Main type local sender local sender_type - local smtp_from = lua_util.maybe_smtp_quote_value(task:get_from('smtp')) + local smtp_from = task:get_from('smtp') if smtp_from and smtp_from[1] and |