diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-09-28 13:19:25 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-09-28 13:19:25 +0200 |
commit | c9b7fa1d24f8b9f1168ecca2b8cf4f1214e16345 (patch) | |
tree | 070a407545b3468963b501c3ef32f2461717d8ab /src/plugins/lua/milter_headers.lua | |
parent | d0106139487f80bc4fcc926d7329f3e0aada234d (diff) | |
download | rspamd-c9b7fa1d24f8b9f1168ecca2b8cf4f1214e16345.tar.gz rspamd-c9b7fa1d24f8b9f1168ecca2b8cf4f1214e16345.zip |
[Fix] Milter headers: skip_local / skip_authenticated settings
- Fixes: #1850
- Reported by: @iflyhigh
- MFH: rspamd-1.6
Diffstat (limited to 'src/plugins/lua/milter_headers.lua')
-rw-r--r-- | src/plugins/lua/milter_headers.lua | 8 |
1 files 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 |