summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-01-15 20:51:05 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2015-01-15 20:51:17 +0100
commitf4154d91080fcd2404102e8d57679f42af96ef2e (patch)
treec8eedc01d11def8ef3062b6e2de26af695c8d9b5 /program
parentde0bc662f9a8739d649c3dce9b12113fd832bafd (diff)
Fall back to $part->body when no mime_id is set for the message part
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
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') {