diff options
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/message.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 56fa85333..2fcb4f7cd 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1214,7 +1214,8 @@ rspamd_normalize_text_part (struct rspamd_task *task, /* Ugly workaround */ tmp = rspamd_tokenize_text (part->content->data, part->content->len, IS_PART_UTF (part), task->cfg->min_word_len, - part->urls_offset, FALSE); + part->urls_offset, FALSE, + !(part->flags & RSPAMD_MIME_PART_FLAG_HTML)); if (tmp) { for (i = 0; i < tmp->len; i ++) { @@ -1415,7 +1416,8 @@ process_text_part (struct rspamd_task *task, detect_text_language (text_part); text_part->words = rspamd_tokenize_text (text_part->content->data, text_part->content->len, IS_PART_UTF (text_part), task->cfg->min_word_len, - text_part->urls_offset, FALSE); + text_part->urls_offset, FALSE, + !(text_part->flags & RSPAMD_MIME_PART_FLAG_HTML)); rspamd_normalize_text_part (task, text_part); /* Calculate number of lines */ |