]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
RBL: Change order of calls to avoid sending error messages to logs 246/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 1 Apr 2015 16:34:39 +0000 (18:34 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 1 Apr 2015 16:38:20 +0000 (18:38 +0200)
Conflicts:
src/plugins/lua/rbl.lua

src/plugins/lua/rbl.lua

index 653e4af8e02cd7c572b19b766a71e125ff50a109..88809305b5a0d7574c11cf83b5b86a08150f3f48 100644 (file)
@@ -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)