if configure_asn_module() then
local id = rspamd_config:register_symbol({
name = 'ASN_CHECK',
- type = 'prefilter,nostat',
+ type = 'prefilter',
callback = asn_check,
priority = 8,
- flags = 'empty',
+ flags = 'empty,nostat',
})
if options['symbol'] then
rspamd_config:register_symbol({
local id = rspamd_config:register_symbol({
name = 'MIME_TYPES_CALLBACK',
callback = check_mime_type,
- type = 'callback,nostat',
+ type = 'callback',
+ flags = 'nostat',
group = 'mime_types',
})
group = 'mime_types',
})
rspamd_config:register_symbol({
- type = 'virtual,nostat',
+ type = 'virtual',
name = 'MIME_TRACE',
parent = id,
group = 'mime_types',
+ flags = 'nostat',
score = 0,
})
else
local id = rspamd_config:register_symbol({
name = 'NEURAL_CHECK',
- type = 'postfilter,nostat',
+ type = 'postfilter',
+ flags = 'nostat',
priority = 6,
callback = ann_scores_filter
})
})
rspamd_config:register_symbol({
name = rule_elt.symbol_spam,
- type = 'virtual,nostat',
+ type = 'virtual',
+ flags = 'nostat',
parent = id
})
})
rspamd_config:register_symbol({
name = rule_elt.symbol_ham,
- type = 'virtual,nostat',
+ type = 'virtual',
+ flags = 'nostat',
parent = id
})
end
rspamd_config:register_symbol({
name = 'NEURAL_LEARN',
- type = 'idempotent,nostat,explicit_disable',
+ type = 'idempotent',
+ flags = 'nostat,explicit_disable',
priority = 5,
callback = ann_push_vector
})
local id = rspamd_config:register_symbol({
name = 'P0F_CHECK',
- type = 'prefilter,nostat',
+ type = 'prefilter',
callback = check_p0f,
priority = 8,
- flags = 'empty',
+ flags = 'empty,nostat',
group = N
})
lua_util.disable_module(N, "redis")
else
local s = {
- type = 'prefilter,nostat',
+ type = 'prefilter',
name = 'RATELIMIT_CHECK',
priority = 7,
callback = ratelimit_cb,
- flags = 'empty',
+ flags = 'empty,nostat',
}
if settings.symbol then
-- Failure symbol
rspamd_config:register_symbol{
- type = 'virtual,nostat',
+ type = 'virtual',
+ flags = 'nostat',
name = rbl.symbol .. '_FAIL',
parent = id,
score = 0.0,
local id = rspamd_config:register_symbol({
name = 'REPLIES_CHECK',
- type = 'prefilter,nostat',
+ type = 'prefilter',
callback = replies_check_cookie,
+ flags = 'nostat',
priority = 10,
group = "replies"
})
})
local id = rspamd_config:register_symbol({
name = 'REPLIES_CHECK',
- type = 'prefilter,nostat',
+ type = 'prefilter',
+ flags = 'nostat',
callback = replies_check,
priority = 10,
group = "replies"
-- Also register a postfilter
rspamd_config:register_symbol{
name = rule.symbol .. '_POST',
- type = 'postfilter,nostat',
+ type = 'postfilter',
+ flags = 'nostat',
callback = callback_gen(reputation_postfilter_cb, rule),
}
end
fun.each(function(id, h)
rspamd_config:register_symbol({
name = 'REDIS_SETTINGS' .. tostring(id),
- type = 'prefilter,nostat',
+ type = 'prefilter',
callback = gen_redis_callback(h, id),
priority = 10,
- flags = 'empty',
+ flags = 'empty,nostat',
})
end, redis_key_handlers)
end