]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Symbol 'FANNR_SPAM' has its score defined.. 1911/head
authordehnli <dehnli@gmail.com>
Sat, 11 Nov 2017 14:46:53 +0000 (17:46 +0300)
committerGitHub <noreply@github.com>
Sat, 11 Nov 2017 14:46:53 +0000 (17:46 +0300)
.. but there is no corresponding rule registered

src/plugins/lua/fann_redis.lua

index 2ca94ef0f5ab4d94f870b1226f16930b5de82e08..3a435c321182e306699a21f9dde7cdc29406b0e9 100644 (file)
@@ -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,