X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=59c4e4c87f3751e0b6fce8ea6f24c6e0773014a4;hb=813eba2f5f4695bd30b895cd148658f3b90bf120;hp=b660fefdb1aeec9f7507a671228e16fb1682ddea;hpb=e550d5517eebba0d7922d82e3b649c0ac16889c2;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index b660fefd..59c4e4c8 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -3,63 +3,181 @@ include("../functions/strings.php"); include("../functions/page_header.php"); include("../functions/imap.php"); - include("../functions/mailbox.php"); + include("../functions/mime.php"); include("../functions/date.php"); - $imapConnection = loginToImapServer($username, $key, $imapServerAddress); - selectMailbox($imapConnection, $mailbox, $numMessages); - - echo "
\n"; - displayPageHeader($mailbox); - $body = fetchBody($imapConnection, $passed_id); - getMessageHeaders($imapConnection, $passed_id, $passed_id, $f, $s, $d); - - $subject = $s[0]; - $d[0] = ereg_replace(" ", " ", $d[0]); -// $date = explode(" ", trim($d[0])); -// $date = getDateString($date); - $date = $d[0]; - $from_name = getSenderName($f[0]); - - echo "";
- echo "
\n";
+ $body = formatBody($message, $color, $wrap_at);
+ echo " | "; - echo " \n"; - $i = 0; - while ($i < count($body)) { - echo "$body[$i]"; - $i++; - } - echo " | | |