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.6.5~3^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0906f42dfd4c2293967a40a96be44cea39cc31e0;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 f3d698c24c..d193e29aaa 100644 --- a/src/plugins/lua/milter_headers.lua +++ b/src/plugins/lua/milter_headers.lua @@ -458,11 +458,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