getEntity($ent_id);
if ($passed_ent_id) {
$message = &$message->getEntity($passed_ent_id);
}
$header = $message_ent->header;
$type0 = $header->type0;
$type1 = $header->type1;
$charset = $header->getParameter('charset');
$encoding = strtolower($header->encoding);
$msg_url = 'read_body.php?' . $QUERY_STRING;
$msg_url = set_url_var($msg_url, 'ent_id', 0);
$dwnld_url = '../src/download.php?' . $QUERY_STRING . '&absolute_dl=true';
$body = mime_fetch_body($imapConnection, $passed_id, $ent_id);
$body = decodeBody($body, $encoding);
if (isset($languages[$squirrelmail_language]['XTRA_CODE']) &&
function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
if (mb_detect_encoding($body) != 'ASCII') {
$body = $languages[$squirrelmail_language]['XTRA_CODE']('decode', $body);
}
}
if ($type1 == 'html' || (isset($override_type1) && $override_type1 == 'html')) {
$body = MagicHTML( $body, $passed_id, $message, $mailbox);
} else {
translateText($body, $wrap_at, $charset);
}
displayPageHeader($color, 'None');
?>
|