From: Andrew Lewis Date: Thu, 28 Sep 2017 11:19:25 +0000 (+0200) Subject: [Fix] Milter headers: skip_local / skip_authenticated settings X-Git-Tag: 1.7.0~607 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9b7fa1d24f8b9f1168ecca2b8cf4f1214e16345;p=thirdparty%2Frspamd.git [Fix] Milter headers: skip_local / skip_authenticated settings - Fixes: #1850 - Reported by: @iflyhigh - MFH: rspamd-1.6 --- diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua index 25bf14ce70..9a0eb23a0a 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