aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-15 12:41:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-15 12:41:22 +0000
commitd2f82b9a72ce34fdcb757e08072bcc2bef9cac28 (patch)
tree9d0fda6f16a6553dec6537c1fce450088d8e6273 /src/libserver/cfg_utils.c
parent19a76b29c6bab95be01dedd34d2b89c38ab45959 (diff)
downloadrspamd-d2f82b9a72ce34fdcb757e08072bcc2bef9cac28.tar.gz
rspamd-d2f82b9a72ce34fdcb757e08072bcc2bef9cac28.zip
[Minor] Add new config options to classifiers
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c3
1 files changed, 3 insertions, 0 deletions
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,