From: Vsevolod Stakhov Date: Tue, 13 Aug 2019 15:30:44 +0000 (+0100) Subject: [Minor] Another adjustment for fuzzy calc X-Git-Tag: 2.0~433 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23901080105cdcdb5e276f8727ee4e1e39566acb;p=thirdparty%2Frspamd.git [Minor] Another adjustment for fuzzy calc --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 8400186c40..caa787ed78 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -2143,7 +2143,7 @@ fuzzy_insert_metric_results (struct rspamd_task *task, GPtrArray *results) if (task->message) { PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, text_parts), i, tp) { - if (!IS_PART_EMPTY (tp) && tp->utf_words->len > RSPAMD_SHINGLE_SIZE) { + if (!IS_PART_EMPTY (tp) && tp->utf_words->len > 0) { seen_text_part = TRUE; if (tp->utf_stripped_text.magic == UTEXT_MAGIC) {