]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not use lowercase for stemmed words unless 1.6 release
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 13 May 2017 12:18:50 +0000 (13:18 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 13 May 2017 12:18:50 +0000 (13:18 +0100)
This will decrease efficiency of fuzzy and introduce incompatibility
with 1.5. Hence, delay this change unless 1.6 is finally released.

src/libmime/message.c

index dfcd483a72a916e1a19604acf576f23c28842cc2..9cf611e791ada75d7ec7d25809c320df0b033b4c 100644 (file)
@@ -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;