Fall back to $part->body when no mime_id is set for the message part

pull/264/head
Thomas Bruederli 10 years ago
parent de0bc662f9
commit f4154d9108

@ -1205,7 +1205,7 @@ function rcmail_message_body($attrib)
} }
// fetch part body // 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 // extract headers from message/rfc822 parts
if ($part->mimetype == 'message/rfc822') { if ($part->mimetype == 'message/rfc822') {

Loading…
Cancel
Save