diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-06 10:36:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-06 10:36:38 +0100 |
commit | 7cfddfbd2230e79ce07b2c1c0b65a0f67edb576d (patch) | |
tree | 207918299d8e96b03631c786d84625fe96ced296 | |
parent | 6b5592d2bdb07ba1ca08c27bd6b15d95dbcf1468 (diff) | |
download | rspamd-7cfddfbd2230e79ce07b2c1c0b65a0f67edb576d.tar.gz rspamd-7cfddfbd2230e79ce07b2c1c0b65a0f67edb576d.zip |
[Minor] Fix symbols registration in fann
-rw-r--r-- | src/plugins/lua/fann_scores.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/lua/fann_scores.lua b/src/plugins/lua/fann_scores.lua index 13e11394d..2a661bf98 100644 --- a/src/plugins/lua/fann_scores.lua +++ b/src/plugins/lua/fann_scores.lua @@ -263,12 +263,23 @@ else else fann_file = opts['fann_file'] use_settings = opts['use_settings'] - rspamd_config:set_metric_symbol(fann_symbol, 3.0, 'Experimental FANN adjustment') + rspamd_config:set_metric_symbol({ + name = fann_symbol_spam, + score = 3.0, + description = 'Neural network SPAM', + group = 'fann' + }) local id = rspamd_config:register_symbol({ name = fann_symbol_spam, type = 'postfilter', callback = fann_scores_filter }) + rspamd_config:set_metric_symbol({ + name = fann_symbol_ham, + score = -2.0, + description = 'Neural network HAM', + group = 'fann' + }) rspamd_config:register_symbol({ name = fann_symbol_ham, type = 'virtual', |