| | |
| | | $data['body'] = rcube_enriched::to_html($data['body']); |
| | | } |
| | | |
| | | $txt = new rcube_html2text($data['body'], false, true); |
| | | $body = $txt->get_text(); |
| | | $body = $RCMAIL->html2text($data['body']); |
| | | $part->ctype_secondary = 'plain'; |
| | | } |
| | | // text/html |
| | |
| | | |
| | | // fetch part body |
| | | $body = $MESSAGE->get_part_body($part->mime_id, true); |
| | | |
| | | // extract headers from message/rfc822 parts |
| | | if ($part->mimetype == 'message/rfc822') { |
| | | $msgpart = rcube_mime::parse_message($body); |
| | | if (!empty($msgpart->headers)) { |
| | | $part = $msgpart; |
| | | $out .= html::div('message-partheaders', rcmail_message_headers(sizeof($header_attrib) ? $header_attrib : null, $part->headers)); |
| | | } |
| | | |
| | | $body = $part->body; |
| | | } |
| | | |
| | | // message is cached but not exists (#1485443), or other error |
| | | if ($body === false) { |