getEntity($ent_id); if ($passed_ent_id) { $message = &$message->getEntity($passed_ent_id); } $header = $message_ent->header; $charset = $header->getParameter('charset'); $type0 = $header->type0; $type1 = $header->type1; $encoding = strtolower($header->encoding); $msg_url = 'read_body.php?' . $QUERY_STRING; $msg_url = set_url_var($msg_url, 'ent_id', 0); $body = mime_fetch_body($imapConnection, $passed_id, $ent_id); $body = decodeBody($body, $encoding); displayPageHeader($color, 'None'); echo "
". "
". _("Viewing a text attachment") . " - "; echo ''. _("View message") . ''; $dwnld_url = '../src/download.php?'. $QUERY_STRING.'&absolute_dl=true'; echo '
'. _("Download this as a file"). "

". "". "
". "
". "
"; if ($type1 == 'html' || (isset($override_type1) && $override_type1 == 'html')) { $body = MagicHTML( $body, $passed_id, $message, $mailbox); } else { translateText($body, $wrap_at, $charset); } echo $body . "
"; ?>