From 5c632de8ac7e56e79fe1780b6271381e248d0829 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 24 Sep 2018 11:38:28 +0100 Subject: [PATCH] [Minor] Further corrections of the headers position --- src/libserver/milter.c | 2 +- src/plugins/lua/arc.lua | 6 +++--- src/plugins/lua/milter_headers.lua | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libserver/milter.c b/src/libserver/milter.c index 597676e33..4f6d05d6a 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -1836,7 +1836,7 @@ rspamd_milter_send_task_results (struct rspamd_milter_session *session, hvalue = g_string_new (ucl_object_tostring (elt)); rspamd_milter_send_action (session, RSPAMD_MILTER_INSHEADER, - 2, hname, hvalue); + 1, hname, hvalue); g_string_free (hname, TRUE); g_string_free (hvalue, TRUE); } diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua index 1f75df5cd..3cf58fc8a 100644 --- a/src/plugins/lua/arc.lua +++ b/src/plugins/lua/arc.lua @@ -459,9 +459,9 @@ local function arc_sign_seal(task, params, header) task:set_milter_reply({ add_headers = { - ['ARC-Authentication-Results'] = {order = 2, value = cur_auth_results}, - ['ARC-Message-Signature'] = {order = 2, value = header}, - ['ARC-Seal'] = {order = 2, value = lua_util.fold_header(task, + ['ARC-Authentication-Results'] = {order = 1, value = cur_auth_results}, + ['ARC-Message-Signature'] = {order = 1, value = header}, + ['ARC-Seal'] = {order = 1, value = lua_util.fold_header(task, 'ARC-Seal', cur_arc_seal) } } }) diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua index fb2d20db8..8b81f1052 100644 --- a/src/plugins/lua/milter_headers.lua +++ b/src/plugins/lua/milter_headers.lua @@ -449,7 +449,7 @@ local function milter_headers(task) settings.routines['authentication-results']) if res then - add_header('authentication-results', res, ';', 0) + add_header('authentication-results', res, ';', 1) end end -- 2.39.5