diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-02 12:37:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-02 12:37:10 +0100 |
commit | c913b0a1d1f581a40d3302326e2a6bfdb4d66eea (patch) | |
tree | 10bb2eeb3f53dbbcf9046591817a8a6f8c1db766 /src/plugins/fuzzy_check.c | |
parent | eee2f2adaf4590013a09730f07afafc8a3a149cd (diff) | |
download | rspamd-c913b0a1d1f581a40d3302326e2a6bfdb4d66eea.tar.gz rspamd-c913b0a1d1f581a40d3302326e2a6bfdb4d66eea.zip |
Do not use normalized words if they are absent.
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r-- | src/plugins/fuzzy_check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index a6bbacaf6..b88d490a2 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -537,7 +537,8 @@ fuzzy_preprocess_words (struct mime_text_part *part, rspamd_mempool_t *pool) { GArray *res; - if (!part->is_utf || !part->language || part->language[0] == '\0') { + if (!part->is_utf || !part->language || part->language[0] == '\0' || + part->normalized_words == NULL) { res = part->words; } else { |