From d2f82b9a72ce34fdcb757e08072bcc2bef9cac28 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 15 Nov 2018 12:41:22 +0000 Subject: [Minor] Add new config options to classifiers --- src/libserver/cfg_utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libserver/cfg_utils.c') diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 198e55530..45f289e89 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -971,7 +971,10 @@ rspamd_config_new_classifier (struct rspamd_config *cfg, c = rspamd_mempool_alloc0 (cfg->cfg_pool, sizeof (struct rspamd_classifier_config)); + c->min_prob_strength = 0.343; + c->min_token_hits = 2; } + if (c->labels == NULL) { c->labels = g_hash_table_new_full (rspamd_str_hash, rspamd_str_equal, -- cgit v1.2.3