From c9b7fa1d24f8b9f1168ecca2b8cf4f1214e16345 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Thu, 28 Sep 2017 13:19:25 +0200 Subject: [PATCH] [Fix] Milter headers: skip_local / skip_authenticated settings - Fixes: #1850 - Reported by: @iflyhigh - MFH: rspamd-1.6 --- src/plugins/lua/milter_headers.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua index 25bf14ce7..9a0eb23a0 100644 --- a/src/plugins/lua/milter_headers.lua +++ b/src/plugins/lua/milter_headers.lua @@ -478,11 +478,11 @@ if opts['extended_spam_headers'] then activate_routine('x-rspamd-server') activate_routine('x-rspamd-queue-id') end -if opts['skip_local'] then - settings.skip_local = true +if type(opts['skip_local']) == 'boolean' then + settings.skip_local = opts['skip_local'] end -if opts['skip_authenticated'] then - settings.skip_authenticated = true +if type(opts['skip_authenticated']) == 'boolean' then + settings.skip_authenticated = opts['skip_authenticated'] end for _, s in ipairs(opts['use']) do if not have_routine[s] then -- 2.39.5