summaryrefslogtreecommitdiffstats
path: root/src/plugins/fuzzy_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-13 16:30:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-13 16:30:44 +0100
commit23901080105cdcdb5e276f8727ee4e1e39566acb (patch)
tree136de949b846e52fca55131151b5084aa7a86278 /src/plugins/fuzzy_check.c
parentb56ca75225f68845c1dfbf5e3e56a968a7014e2b (diff)
downloadrspamd-23901080105cdcdb5e276f8727ee4e1e39566acb.tar.gz
rspamd-23901080105cdcdb5e276f8727ee4e1e39566acb.zip
[Minor] Another adjustment for fuzzy calc
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r--src/plugins/fuzzy_check.c2
1 files changed, 1 insertions, 1 deletions
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) {