diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-24 11:32:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-24 11:39:22 +0100 |
commit | 03f3193a78b70332427c3341dd565f14bc68ccb5 (patch) | |
tree | aa381cf8f6db0d6a7ebd78aeaabc58a826c71b11 /src/plugins/lua/arc.lua | |
parent | eb6a122dd30ba399fcd7f8caed1ccbe6dffbf502 (diff) | |
download | rspamd-03f3193a78b70332427c3341dd565f14bc68ccb5.tar.gz rspamd-03f3193a78b70332427c3341dd565f14bc68ccb5.zip |
[Minor] Fix order of header when adding ARC information
Diffstat (limited to 'src/plugins/lua/arc.lua')
-rw-r--r-- | src/plugins/lua/arc.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua index e45391f3b..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 = 0, value = cur_auth_results}, - ['ARC-Message-Signature'] = {order = 0, value = header}, - ['ARC-Seal'] = {order = 0, 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) } } }) @@ -596,7 +596,6 @@ if not (settings.use_redis or settings.selector_map or settings.use_http_headers) then rspamd_logger.infox(rspamd_config, 'mandatory parameters missing, disable arc signing') - lua_util.disable_module(N, "fail") return end @@ -605,7 +604,6 @@ if settings.use_redis then if not redis_params then rspamd_logger.errx(rspamd_config, 'no servers are specified, but module is configured to load keys from redis, disable arc signing') - lua_util.disable_module(N, "config") return end end |