]> source.dussan.org Git - rspamd.git/commitdiff
RBL: Change order of calls to avoid sending error messages to logs 245/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:34:39 +0000 (18:34 +0200)
src/plugins/lua/rbl.lua

index 1651d626bfcf1a0d79419df62bf32d0a8f3853c6..eddb4c77bcaab263f8375d0ecbf3c0230ba0e494 100644 (file)
@@ -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)