summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-11 17:37:19 +0000
committerGitHub <noreply@github.com>2017-11-11 17:37:19 +0000
commit815104c21d171de0d370b00e38e54783a082ed08 (patch)
tree271d356beab718c71a124eab16c84d3ca4122155
parent80b59a48c8d35026425ef2db28e281e955c8e08c (diff)
parent57c8d570c7381a45a9ec6ead3e9fecbcccd94da5 (diff)
downloadrspamd-815104c21d171de0d370b00e38e54783a082ed08.tar.gz
rspamd-815104c21d171de0d370b00e38e54783a082ed08.zip
Merge pull request #1911 from dehnli/fann-redis
[Fix] Symbol 'FANNR_SPAM' has its score defined..
-rw-r--r--src/plugins/lua/fann_redis.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/lua/fann_redis.lua b/src/plugins/lua/fann_redis.lua
index 2ca94ef0f..3a435c321 100644
--- a/src/plugins/lua/fann_redis.lua
+++ b/src/plugins/lua/fann_redis.lua
@@ -1155,6 +1155,11 @@ else
description = 'Neural network SPAM',
group = 'fann'
})
+ rspamd_config:register_symbol({
+ name = def_rules.symbol_spam,
+ type = 'virtual,nostat',
+ parent = id
+ })
rspamd_config:set_metric_symbol({
name = def_rules.symbol_ham,