From: Andrew Lewis Date: Fri, 20 Jan 2017 15:00:38 +0000 (+0200) Subject: [Minor] Small fix for rmilter headers rework X-Git-Tag: 1.5.0~292^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1356%2Fhead;p=thirdparty%2Frspamd.git [Minor] Small fix for rmilter headers rework --- diff --git a/src/plugins/lua/rmilter_headers.lua b/src/plugins/lua/rmilter_headers.lua index 86acaf9507..4e3eee0f8e 100644 --- a/src/plugins/lua/rmilter_headers.lua +++ b/src/plugins/lua/rmilter_headers.lua @@ -336,7 +336,7 @@ if type(opts['custom']) == 'table' then end end for _, s in ipairs(opts['use']) do - if (opts.routines and opts.routines[s]) or custom_routines[s] then + if settings.routines[s] or custom_routines[s] then table.insert(active_routines, s) if (opts.routines and opts.routines[s]) then for k, v in pairs(opts.routines[s]) do