From 84ef21e1aa4a266972ba3557122eabd6a6193f72 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 22 Dec 2010 17:32:30 +0300 Subject: [PATCH] Register symbols properly for received_rbl module. --- src/plugins/lua/received_rbl.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5