From: Vsevolod Stakhov Date: Thu, 6 Apr 2017 12:13:57 +0000 (+0100) Subject: [Minor] Remove metatokens count checks X-Git-Tag: 1.5.5~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f8756bb247eca4378911e3305c9c348a2f32e1f;p=rspamd.git [Minor] Remove metatokens count checks --- diff --git a/src/libstat/classifiers/bayes.c b/src/libstat/classifiers/bayes.c index 7441153ff..e26cd7a02 100644 --- a/src/libstat/classifiers/bayes.c +++ b/src/libstat/classifiers/bayes.c @@ -336,15 +336,6 @@ bayes_classify (struct rspamd_classifier * ctx, *pprob = final_prob; rspamd_mempool_set_variable (task->task_pool, "bayes_prob", pprob, NULL); - if (cl.text_tokens <= (cl.processed_tokens - cl.text_tokens) / 2) { - msg_info_bayes ("ignore bayes probability %.2f since we have " - "much more metatokens (%d) than text tokens (%d)", - final_prob, - cl.processed_tokens - cl.text_tokens, cl.text_tokens); - - return TRUE; - } - if (ctx->cfg->min_tokens > 0 && cl.text_tokens < ctx->cfg->min_tokens * 0.1) { msg_info_bayes ("ignore bayes probability %.2f since we have "