aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-24 11:38:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-24 11:39:22 +0100
commit5c632de8ac7e56e79fe1780b6271381e248d0829 (patch)
treeae2358b413b068502a3e4cd3b05170600ca38b3d
parente22b7d0bebd149ca1053b751bf5672319b24b5b2 (diff)
downloadrspamd-5c632de8ac7e56e79fe1780b6271381e248d0829.tar.gz
rspamd-5c632de8ac7e56e79fe1780b6271381e248d0829.zip
[Minor] Further corrections of the headers position
-rw-r--r--src/libserver/milter.c2
-rw-r--r--src/plugins/lua/arc.lua6
-rw-r--r--src/plugins/lua/milter_headers.lua2
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