elseif not opts['send_reports'] then
dmarc_reporting = true
rspamd_config:add_on_load(function(cfg, ev_base, worker)
- if not (worker:get_name() == 'normal' and worker:get_index() == 0) then return end
load_scripts(cfg, ev_base)
end)
else
end
end
rspamd_config:add_on_load(function(cfg, ev_base, worker)
+ load_scripts(cfg, ev_base)
if not (worker:get_name() == 'normal' and worker:get_index() == 0) then return end
local rresolver = rspamd_resolver.init(ev_base, rspamd_config)
- load_scripts(cfg, ev_base)
rspamd_config:register_finish_script(function ()
local stamp = pool:get_variable(VAR_NAME, 'double')
if not stamp then
whitelist = rspamd_map_add(N, 'whitelist', 'map', 'URL reputation whitelist')
rspamd_config:add_on_load(function(cfg, ev_base, worker)
- if not (worker:get_name() == 'normal' and worker:get_index() == 0) then return end
load_scripts(cfg, ev_base)
end)
local id = rspamd_config:register_symbol({
settings.ignore_tags = list_to_hash(settings.ignore_tags)
rspamd_config:add_on_load(function(cfg, ev_base, worker)
- if not (worker:get_name() == 'normal' and worker:get_index() == 0) then return end
load_scripts(cfg, ev_base)
end)
rspamd_config:register_symbol({