]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Apply more aggressive filtering
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 3 Feb 2018 15:40:47 +0000 (15:40 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 3 Feb 2018 15:40:47 +0000 (15:40 +0000)
src/libmime/lang_detection.c

index e15f99f767231bf51a5363930a2708f14804bc7e..4eb5023f2439df1175f61a7aa675b86489956812 100644 (file)
@@ -923,7 +923,7 @@ rspamd_language_detector_filter_negligible (struct rspamd_task *task,
                 * Probabilities are logarithmic, so if prob1 - prob2 > 4, it means that
                 * prob2 is 2^4 less than prob1
                 */
-               if (max_prob - cand->prob > 1.5) {
+               if (max_prob - cand->prob > 1) {
                        msg_debug_lang_det ("exclude language %s: %.3f (%.3f max)",
                                        cand->lang, cand->prob, max_prob);
                        g_hash_table_iter_remove (&it);