aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-13 13:18:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-13 13:18:50 +0100
commit2cebc2f8b4e75135e0842af5af44bc1f9f891a27 (patch)
tree48ad0d42730c2eaeab1bdd363fb39f59b9c43d74 /src/libmime/message.c
parent85eead9d1fbebd84fa25046970f73fcb9a127e50 (diff)
downloadrspamd-2cebc2f8b4e75135e0842af5af44bc1f9f891a27.tar.gz
rspamd-2cebc2f8b4e75135e0842af5af44bc1f9f891a27.zip
[Minor] Do not use lowercase for stemmed words unless 1.6 release
This will decrease efficiency of fuzzy and introduce incompatibility with 1.5. Hence, delay this change unless 1.6 is finally released.
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r--src/libmime/message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index dfcd483a7..9cf611e79 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -240,12 +240,14 @@ rspamd_extract_words (struct rspamd_task *task,
temp_word = rspamd_mempool_alloc (task->task_pool, nlen);
memcpy (temp_word, r, nlen);
+#if 0
if (IS_PART_UTF (part)) {
rspamd_str_lc_utf8 (temp_word, nlen);
}
else {
rspamd_str_lc (temp_word, nlen);
}
+#endif
w->begin = temp_word;
w->len = nlen;