From 56d6231ba02cb9e686de1bc597171b82b876e963 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 13 May 2019 21:06:39 +0100 Subject: [PATCH] [Fix] Fix ARC signing after fixing another bug in it... --- lualib/lua_auth_results.lua | 5 ++++- src/plugins/lua/arc.lua | 5 +---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lualib/lua_auth_results.lua b/lualib/lua_auth_results.lua index 1ec3dc538..3438b2058 100644 --- a/lualib/lua_auth_results.lua +++ b/lualib/lua_auth_results.lua @@ -49,7 +49,10 @@ local default_settings = { add_smtp_user = true, } -local exports = {} +local exports = { + default_settings = default_settings +} + local local_hostname = rspamd_util.get_hostname() local function gen_auth_results(task, settings) diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua index 496e8c21e..05f92e5dd 100644 --- a/src/plugins/lua/arc.lua +++ b/src/plugins/lua/arc.lua @@ -91,10 +91,7 @@ local settings = { } -- To match normal AR -local ar_settings = { - add_smtp_user = true, - stop_chars = ';' -} +local ar_settings = auth_results.default_settings local function parse_arc_header(hdr, target) -- Split elements by ';' and trim spaces -- 2.39.5