})
local is_monitored = {}
+local rbls_count = 0
for key,rbl in pairs(opts['rbls']) do
(function()
if type(rbl) ~= 'table' or rbl['disabled'] then
(not rbl['returncodes'])) then
rbl['symbol'] = key
end
- if type(rspamd_config.get_api_version) ~= 'nil' and rbl['symbol'] then
+ if rbl['symbol'] then
rspamd_config:register_symbol({
name = rbl['symbol'],
parent = id,
type = 'virtual'
})
+ rbls_count = rbls_count + 1
if rbl['dkim'] then
need_dkim = true
end)()
end
-if #opts.rbls == 0 then
+if rbls_count == 0 then
lua_util.disable_module(N, "config")
end