From: Vsevolod Stakhov Date: Mon, 28 Nov 2016 14:22:24 +0000 (+0000) Subject: [Feature] Allow to specify prefix for fann_redis X-Git-Tag: 1.4.1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adf548b9083cd0b2aa815a445a115fb83603839f;p=thirdparty%2Frspamd.git [Feature] Allow to specify prefix for fann_redis --- diff --git a/src/plugins/lua/fann_redis.lua b/src/plugins/lua/fann_redis.lua index beea591a55..df995ee514 100644 --- a/src/plugins/lua/fann_redis.lua +++ b/src/plugins/lua/fann_redis.lua @@ -844,6 +844,9 @@ else if opts['ham_symbol'] then fann_symbol_ham = opts['ham_symbol'] end + if opts['prefix'] then + fann_prefix = opts['prefix'] + end rspamd_config:set_metric_symbol({ name = fann_symbol_spam, score = 3.0,