echo "<a href=\"read_body.php?mailbox=".urlencode($mailbox)."&passed_id=$passed_id&startMessage=$startMessage&show_more=$show_more\">";
echo ""._("View message") . "</a></b></center></td></tr></table>\n";
echo "<table width=99% cellpadding=2 cellspacing=0 border=0 align=center>\n";
- echo "<tr><td><small><pre>";
+ echo "<tr><td><pre>";
for ($i=1; $i < count($read)-1; $i++) {
$read[$i] = htmlspecialchars($read[$i]);
if (substr($read[$i], 0, 1) != "\t" &&
substr($read[$i], 0, 1) != "&" &&
trim($read[$i])) {
$pre = substr($read[$i], 0, strpos($read[$i], ":"));
- $read[$i] = str_replace("$pre", "<b>$pre</b>", $read[$i]);
+ $read[$i] = str_replace("$pre", "<b>$pre</b>", decodeHeader($read[$i]));
}
echo "$read[$i]";
}
- echo "</pre></small></td></tr></table>\n";
+ echo "</pre></td></tr></table>\n";
echo "</body></html>";
exit;
}
$subject = decodeHeader(htmlspecialchars(stripslashes($message->header->subject)));
echo "<BR>";
- echo "<TABLE COLS=1 CELLSPACING=0 WIDTH=98% BORDER=0 ALIGN=CENTER CELLPADDING=0>\n";
+ echo "<TABLE COLS=1 CELLSPACING=0 WIDTH=100% BORDER=0 ALIGN=CENTER CELLPADDING=0>\n";
echo " <TR><TD BGCOLOR=\"$color[9]\" WIDTH=100%>";
echo " <TABLE WIDTH=100% CELLSPACING=0 BORDER=0 COLS=2 CELLPADDING=3>";
echo " <TR>";
$prev = findPreviousMessage();
$next = findNextMessage();
if ($prev != -1)
- echo "<a href=\"read_body.php?passed_id=$prev&mailbox=$mailbox&sort=$sort&startMessage=$startMessage&show_more=0\">" . _("Previous") . "</A> | ";
+ echo "<a href=\"read_body.php?passed_id=$prev&mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage&show_more=0\">" . _("Previous") . "</A> | ";
else
echo _("Previous") . " | ";
if ($next != -1)
- echo "<a href=\"read_body.php?passed_id=$next&mailbox=$mailbox&sort=$sort&startMessage=$startMessage&show_more=0\">" . _("Next") . "</A>";
+ echo "<a href=\"read_body.php?passed_id=$next&mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage&show_more=0\">" . _("Next") . "</A>";
else
echo _("Next");
}
}
echo "</TABLE>";
echo " </TD></TR>";
+ echo "</table>";
+ echo "<TABLE COLS=1 CELLSPACING=0 WIDTH=100% BORDER=0 ALIGN=CENTER CELLPADDING=0>\n";
echo " <TR><TD BGCOLOR=\"$color[4]\" WIDTH=100%>\n";
$body = formatBody($imapConnection, $message, $color, $wrap_at);
echo "$body";
echo " </TD></TR>\n";
+ echo "</table>";
+ echo "<TABLE COLS=1 CELLSPACING=0 WIDTH=100% BORDER=0 ALIGN=CENTER CELLPADDING=0>\n";
echo " <TR><TD BGCOLOR=\"$color[9]\"> </TD></TR>";
echo "</TABLE>\n";