From f64d2c4ec81515a954fc30c73330ada87f628f3d Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 1 Apr 2015 17:33:10 +0200 Subject: [PATCH] RBL: Adapt for 0.8 branch --- src/plugins/lua/rbl.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 1651d626bf..653e4af8e0 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -375,12 +375,13 @@ for key,rbl in pairs(opts['rbls']) do end rbls[key] = rbl end +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) - rspamd_config:set_metric_symbol(csymbol, 0, 'Autogenerated composite') + metrics['default'][csymbol] = {weight = 0, description = 'RBL Composite'} end end rspamd_config:register_callback_symbol_priority('RBL', 1.0, 0, rbl_cb) -- 2.47.3