[Rspamd] Various fixes for Rspamd 2.0, neural network activated, autolearning activated (auto-keeps a ratio)

This commit is contained in:
andryyy
2019-10-12 13:14:34 +02:00
parent 8783ec4415
commit ee57b5921f
5 changed files with 52 additions and 24 deletions

View File

@@ -23,7 +23,7 @@ rspamd_config:register_symbol({
local redis_params = rspamd_parse_redis_server('keep_spam')
local ip = task:get_from_ip()
if not ip:is_valid() then
if ip == nil or not ip:is_valid() then
return false
end
@@ -174,6 +174,7 @@ rspamd_config:register_symbol({
end
return true
end,
flags = 'empty',
priority = 20
})