From: Vsevolod Stakhov Date: Wed, 22 Dec 2010 14:32:30 +0000 (+0300) Subject: Register symbols properly for received_rbl module. X-Git-Tag: 0.3.7~93 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=84ef21e1aa4a266972ba3557122eabd6a6193f72;p=rspamd.git Register symbols properly for received_rbl module. --- diff --git a/src/plugins/lua/received_rbl.lua b/src/plugins/lua/received_rbl.lua index df7ba3ace..b98fbc2df 100644 --- a/src/plugins/lua/received_rbl.lua +++ b/src/plugins/lua/received_rbl.lua @@ -68,6 +68,12 @@ if opts then if opts['rbl'] then rbls = opts['rbl'] end + for _,rbl in ipairs(rbls) + local s, _ = string.find(rbl, ':') + if s then + rspamd_config:register_virtual_symbol((string.sub(rbl, s + 1, -1), 1) + end + end -- Register symbol's callback rspamd_config:register_symbol(symbol, 1.0, 'received_cb') end