aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/rbl.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2015-04-01 18:34:39 +0200
committerAndrew Lewis <nerf@judo.za.org>2015-04-01 18:34:39 +0200
commit620ddd93ef1d2cf01d48bc7106a135738e4be52b (patch)
tree47a063108eb1ee03594dd7d6f2230997a095ad40 /src/plugins/lua/rbl.lua
parent270d8ed00effbda560b0ec99e23acb47ae1223ef (diff)
downloadrspamd-620ddd93ef1d2cf01d48bc7106a135738e4be52b.tar.gz
rspamd-620ddd93ef1d2cf01d48bc7106a135738e4be52b.zip
RBL: Change order of calls to avoid sending error messages to logs
Diffstat (limited to 'src/plugins/lua/rbl.lua')
-rw-r--r--src/plugins/lua/rbl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index 1651d626b..eddb4c77b 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -378,9 +378,9 @@ end
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')
+ 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)