commit 2390108: [Minor] Another adjustment for fuzzy calc

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Aug 13 15:35:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-13 16:30:44 +0100
URL: https://github.com/rspamd/rspamd/commit/23901080105cdcdb5e276f8727ee4e1e39566acb (HEAD -> master)

[Minor] Another adjustment for fuzzy calc

---
 src/plugins/fuzzy_check.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 8400186c4..caa787ed7 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) {


More information about the Commits mailing list