$curr_msg = $curr_tree = array();
$contents = &IMP_Contents::singleton($idx . IMP::IDX_SEP . $mbox);
$mime_id = $contents->findBody();
- $mime_part = $contents->getMIMEPart($mime_id);
- if ($contents->canDisplayInline($mime_part)) {
- $curr_msg['body'] = $contents->renderMIMEPart($mime_part);
+ if ($contents->canDisplay($mime_id, IMP_Contents::RENDER_INLINE)) {
+ $curr_msg['body'] = $contents->renderMIMEPart($mime_id);
} else {
$curr_msg['body'] = '<em>' . _("There is no text that can be displayed inline.") . '</em>';
}