X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fread_body.php;h=8e3f24a5b00f8af868b54d84a15ec274b23e34d7;hp=694c4cd5d9173214160ad2c939411a90694621d8;hb=4e0295b2c18bb4270068adcec58d852d4837e7d9;hpb=be69e508438a39ab2af212305a609fbbf6f9c71b diff --git a/src/read_body.php b/src/read_body.php index 694c4cd5..8e3f24a5 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,65 +1,182 @@ - - 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 "$body"; - echo " \n"; - $i = 1; - while ($i < count($body)-2) { - echo "$body[$i] "; - $i++; - } echo " | | |