diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-29 11:58:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-29 11:58:02 +0100 |
commit | 5b73f19bc26253b7c80a783ee100a96a644610df (patch) | |
tree | 3c6ca0cada51c4d76e88cd8e79bf73d3c1d826fc /src/plugins/lua/arc.lua | |
parent | b1ba09596bfe46eca62ce28059c9f47233b8347c (diff) | |
download | rspamd-5b73f19bc26253b7c80a783ee100a96a644610df.tar.gz rspamd-5b73f19bc26253b7c80a783ee100a96a644610df.zip |
[Minor] Insert ARC headers to the top
Issue: #2113
Closes: #2113
Diffstat (limited to 'src/plugins/lua/arc.lua')
-rw-r--r-- | src/plugins/lua/arc.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua index 0feae3219..b240b3b3c 100644 --- a/src/plugins/lua/arc.lua +++ b/src/plugins/lua/arc.lua @@ -418,11 +418,10 @@ local function arc_sign_seal(task, params, header) task:set_milter_reply({ add_headers = { - ['ARC-Authentication-Results'] = cur_auth_results, - ['ARC-Message-Signature'] = header, - ['ARC-Seal'] = lua_util.fold_header(task, - 'ARC-Seal', - cur_arc_seal), + ['ARC-Authentication-Results'] = {order = 0, value = cur_auth_results}, + ['ARC-Message-Signature'] = {order = 0, value = header}, + ['ARC-Seal'] = {order = 0, value = lua_util.fold_header(task, + 'ARC-Seal', cur_arc_seal) } } }) task:insert_result(settings.sign_symbol, 1.0, string.format('i=%d', cur_idx)) |