]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Milter headers: skip_local / skip_authenticated settings
authorAndrew Lewis <nerf@judo.za.org>
Thu, 28 Sep 2017 11:19:25 +0000 (13:19 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 28 Sep 2017 11:19:25 +0000 (13:19 +0200)
 - Fixes: #1850
 - Reported by: @iflyhigh
 - MFH: rspamd-1.6

src/plugins/lua/milter_headers.lua

index 25bf14ce70619696c6a67c7d1227f124ae8e5d35..9a0eb23a0acd0f569795f1890f4c71dfc2bdb071 100644 (file)
@@ -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