diff options
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 9f3df14e2..7ee31a26d 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1237,7 +1237,8 @@ process_message (struct rspamd_task *task) else { /* We got only message, no mime headers or anything like this */ /* Construct fake message for it */ - task->message = g_mime_message_new (TRUE); + message = g_mime_message_new (TRUE); + task->message = message; if (task->from_envelope) { g_mime_message_set_sender (task->message, rspamd_task_get_sender (task)); |