From f4154d91080fcd2404102e8d57679f42af96ef2e Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 15 Jan 2015 20:51:05 +0100 Subject: Fall back to $part->body when no mime_id is set for the message part --- program/steps/mail/func.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 48d989954..9a6be0c8c 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1205,7 +1205,7 @@ function rcmail_message_body($attrib) } // fetch part body - $body = $MESSAGE->get_part_body($part->mime_id, true); + $body = $part->mime_id ? $MESSAGE->get_part_body($part->mime_id, true) : $part->body; // extract headers from message/rfc822 parts if ($part->mimetype == 'message/rfc822') { -- cgit v1.2.3