'rspamd_redis_make_request',
'rspamd_str_split',
'rspamd_version',
- 'rspamd_map_add',
'rspamd_maps',
'rspamd_plugins_state',
'rspamadm',
rspamd_logger.infox(rspamd_config, 'no servers are specified, disabling module')
lua_util.disable_module(N, "config")
else
- settings['from_map'] = rspamd_map_add('clickhouse', 'from_tables',
+ local lua_maps = require "lua_maps"
+ settings['from_map'] = lua_maps.map_add('clickhouse', 'from_tables',
'regexp', 'clickhouse specific domains')
settings.upstream = upstream_list.create(rspamd_config,
good_hosts = v
end
elseif n == 'whitelist' then
- whitelist = rspamd_map_add('once_received', 'whitelist', 'radix',
+ local lua_maps = require "lua_maps"
+ whitelist = lua_maps.map_add('once_received', 'whitelist', 'radix',
'once received whitelist')
elseif n == 'symbol_mx' then
symbol_mx = v
local cfg = rule.selector.config
if cfg.asn_cc_whitelist then
- cfg.asn_cc_whitelist = rspamd_map_add('reputation',
+ cfg.asn_cc_whitelist = lua_maps.map_add('reputation',
'asn_cc_whitelist',
'map',
'IP score whitelisted ASNs/countries')