From 396f7850a30234f0e85d5c40afb24358158a8a46 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 18 Jul 2017 19:37:40 +0100 Subject: [PATCH] [Fix] Fix get_content method Issue: #1759 --- src/libmime/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libmime/message.c b/src/libmime/message.c index 43b3fcffd..a22f51912 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -745,6 +745,7 @@ rspamd_message_process_text_part (struct rspamd_task *task, text_part->html = rspamd_mempool_alloc0 (task->task_pool, sizeof (*text_part->html)); text_part->mime_part = mime_part; + text_part->utf_raw_content = part_content; text_part->flags |= RSPAMD_MIME_TEXT_PART_FLAG_BALANCED; text_part->content = rspamd_html_process_part_full ( @@ -754,7 +755,6 @@ rspamd_message_process_text_part (struct rspamd_task *task, &text_part->exceptions, task->urls, task->emails); - text_part->utf_raw_content = part_content; if (text_part->content->len == 0) { text_part->flags |= RSPAMD_MIME_TEXT_PART_FLAG_EMPTY; -- 2.39.5