aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-10-22 13:00:21 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-10-22 13:00:21 +0100
commitded2e51e60325a0e817362c6df0c341bb00d4b0e (patch)
tree795f5ffdb3e257f07de11420b2b79a53a9dce73c /src
parent764a54dea98636dfc725edd29a48577742d506c9 (diff)
downloadrspamd-ded2e51e60325a0e817362c6df0c341bb00d4b0e.tar.gz
rspamd-ded2e51e60325a0e817362c6df0c341bb00d4b0e.zip
[CritFix] Restore compatibility with the integrations and headers alterations
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/milter_headers.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua
index 913b71f54..a8be5ef37 100644
--- a/src/plugins/lua/milter_headers.lua
+++ b/src/plugins/lua/milter_headers.lua
@@ -39,6 +39,7 @@ local settings = {
skip_all = false,
local_headers = {},
authenticated_headers = {},
+ headers_modify_mode = 'compat', -- To avoid compatibility issues on upgrade
default_headers_order = nil, -- Insert at the end (set 1 to insert just after the first received)
routines = {
['remove-headers'] = {
@@ -572,7 +573,7 @@ local function milter_headers(task)
lua_mime.modify_headers(task, {
add = add,
remove = remove
- })
+ }, settings.headers_modify_mode)
end
end