summaryrefslogtreecommitdiffstats
path: root/src/plugins/chartable.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-30 15:03:00 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-30 15:03:00 +0000
commit8857f667412c2db45c5d346575db3eb1cf398b04 (patch)
tree46bcc4157c54ee8811f6618760d1f0ae6c8b6624 /src/plugins/chartable.c
parent7fde20c6c535c8bee0ba418fb48cb93b0fe089bb (diff)
downloadrspamd-8857f667412c2db45c5d346575db3eb1cf398b04.tar.gz
rspamd-8857f667412c2db45c5d346575db3eb1cf398b04.zip
[Minor] Count words based on text words
Diffstat (limited to 'src/plugins/chartable.c')
-rw-r--r--src/plugins/chartable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c
index e48d19ea2..b6e42457a 100644
--- a/src/plugins/chartable.c
+++ b/src/plugins/chartable.c
@@ -594,7 +594,7 @@ rspamd_chartable_process_part (struct rspamd_task *task,
*/
part->capital_letters += ncap;
- cur_score /= (gdouble)part->utf_words->len;
+ cur_score /= (gdouble)part->nwords;
if (cur_score > 2.0) {
cur_score = 2.0;