From: Andrew Lewis Date: Wed, 1 Apr 2015 16:34:39 +0000 (+0200) Subject: RBL: Change order of calls to avoid sending error messages to logs X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F246%2Fhead;p=thirdparty%2Frspamd.git RBL: Change order of calls to avoid sending error messages to logs Conflicts: src/plugins/lua/rbl.lua --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 653e4af8e0..88809305b5 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -379,9 +379,9 @@ metrics['default'] = {} for _, w in pairs(white_symbols) do for _, b in pairs(black_symbols) do csymbol = 'RBL_COMPOSITE_' .. w .. '_' .. b - rspamd_config:register_virtual_symbol(csymbol, 1) - rspamd_config:add_composite(csymbol, w .. ' & ' .. b) metrics['default'][csymbol] = {weight = 0, description = 'RBL Composite'} + rspamd_config:add_composite(csymbol, w .. ' & ' .. b) + rspamd_config:register_virtual_symbol(csymbol, 1) end end rspamd_config:register_callback_symbol_priority('RBL', 1.0, 0, rbl_cb)