diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-03 15:40:47 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-03 15:40:47 +0000 |
commit | 7bb5cde31cc73f559ee83b8b8a149c4dc8cb0b7d (patch) | |
tree | 483630f4cb42e4f4a2cd544c44e05d465139c1c6 | |
parent | 891590d6093196348f63655a6c308fdca79ec061 (diff) | |
download | rspamd-7bb5cde31cc73f559ee83b8b8a149c4dc8cb0b7d.tar.gz rspamd-7bb5cde31cc73f559ee83b8b8a149c4dc8cb0b7d.zip |
[Minor] Apply more aggressive filtering
-rw-r--r-- | src/libmime/lang_detection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c index e15f99f76..4eb5023f2 100644 --- a/src/libmime/lang_detection.c +++ b/src/libmime/lang_detection.c @@ -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); |