X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=e6e000fa4a680e556cb063e615e609d2e9f241db;hb=53524fa0e0df5fbe4c02db82aee010236b265fb7;hp=b660fefdb1aeec9f7507a671228e16fb1682ddea;hpb=e550d5517eebba0d7922d82e3b649c0ac16889c2;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index b660fefd..e6e000fa 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,65 +1,244 @@ - - include("../config/config.php"); - include("../functions/strings.php"); - include("../functions/page_header.php"); - include("../functions/imap.php"); - include("../functions/mailbox.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 " | | |