local opts = rspamd_config:get_all_opt('asn')
if opts then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
for k,v in pairs(opts) do
-- Configuration
if opts and opts['host'] then
if opts['enabled'] == false then
- logger.info('Module is disabled')
+ logger.infox(rspamd_config, 'module is disabled')
return
end
rspamd_config:register_symbol({
end
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
local opts = rspamd_config:get_all_opt('emails', 'rule')
if opts and type(opts) == 'table' then
if opts['enabled'] == false then
- logger.info('Module is disabled')
+ logger.infox(rspamd_config, 'module is disabled')
return
end
local r = opts['rule']
local opts = rspamd_config:get_all_opt('forged_recipients')
if opts then
if opts['enabled'] == false then
- logger.info('Module is disabled')
+ logger.infox(rspamd_config, 'Module is disabled')
return
end
if opts['symbol_rcpt'] or opts['symbol_sender'] then
local opts = rspamd_config:get_all_opt('greylist')
if opts then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
if opts['whitelisted_ip'] then
local opts = rspamd_config:get_all_opt('hfilter')
if opts then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
for k,v in pairs(opts) do
local opts = rspamd_config:get_all_opt('ip_score')
if opts then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
for k,v in pairs(opts) do
local opts = rspamd_config:get_all_opt('maillist')
if opts then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
if opts['symbol'] then
local opts = rspamd_config:get_all_opt('mime_types')
if opts then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
for k,v in pairs(opts) do
local opts = rspamd_config:get_all_opt('multimap')
if opts and type(opts) == 'table' then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
redis_params = rspamd_parse_redis_server('multimap')
local opts = rspamd_config:get_all_opt('once_received')
if opts then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
if opts['symbol'] then
end
if opts then
+ if opts['enabled'] == false then
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
+ end
if opts['symbol'] then
symbol = opts['symbol']
-- Register symbol's callback
local opts = rspamd_config:get_all_opt('ratelimit')
if opts then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
local rates = opts['limit']
if not (opts and type(opts) == 'table') then
rspamd_logger.info('Module is unconfigured')
elseif opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
local opts = rspamd_config:get_all_opt('replies')
if opts then
if not (opts and type(opts) == 'table') then
- rspamd_logger.info('Module is unconfigured')
+ rspamd_logger.infox(rspamd_config, 'module is unconfigured')
return
elseif opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
redis_params = rspamd_parse_redis_server('replies')
local section = rspamd_config:get_all_opt("rspamd_update")
if section then
if section['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
local trusted_key
local opts = rspamd_config:get_all_opt("trie")
if opts then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
for sym, opt in pairs(opts) do
local opts = rspamd_config:get_all_opt('whitelist')
if opts then
if opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'module is disabled')
return
end
for k,v in pairs(opts) do
options[k] = v
end
else
- rspamd_logger.info('Module is unconfigured')
+ rspamd_logger.infox(rspamd_config, 'Module is unconfigured')
return
end