commit be2dc65: [Minor] Do not count skipped words
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Sep 28 10:07:07 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-09-28 11:01:31 +0100
URL: https://github.com/rspamd/rspamd/commit/be2dc6559fe86c9e8c2071b4f5720df6d6bb9a55
[Minor] Do not count skipped words
---
src/libmime/message.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libmime/message.c b/src/libmime/message.c
index d6a5fb5ce..15a24b934 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -94,7 +94,8 @@ rspamd_mime_part_extract_words (struct rspamd_task *task,
short_len++;
}
- if (w->flags & RSPAMD_STAT_TOKEN_FLAG_TEXT) {
+ if (w->flags & RSPAMD_STAT_TOKEN_FLAG_TEXT &&
+ !(w->flags & RSPAMD_STAT_TOKEN_FLAG_SKIPPED)) {
part->nwords ++;
}
}
More information about the Commits
mailing list