diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-30 15:03:00 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-30 15:03:00 +0000 |
commit | 8857f667412c2db45c5d346575db3eb1cf398b04 (patch) | |
tree | 46bcc4157c54ee8811f6618760d1f0ae6c8b6624 /src/plugins/chartable.c | |
parent | 7fde20c6c535c8bee0ba418fb48cb93b0fe089bb (diff) | |
download | rspamd-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.c | 2 |
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; |