]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix get_content method
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 18 Jul 2017 18:37:40 +0000 (19:37 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 18 Jul 2017 18:37:40 +0000 (19:37 +0100)
Issue: #1759

src/libmime/message.c

index 43b3fcffd9fd63dc17899619ac98d998a77684c0..a22f51912963d6b8ad379cac315bed8d62f5f9f8 100644 (file)
@@ -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;