X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fread_body.php;h=dc3c308af3c261d72ceeb560417b753cf75f1ef4;hp=84f7855795539aaddd803351fba7eb3a17406a26;hb=508c06bf020df744a978fc85b6222bfa24f95d54;hpb=de80e95e61d4a179a0d41ac4512c83818f3243ef;ds=sidebyside diff --git a/src/read_body.php b/src/read_body.php index 84f78557..dc3c308a 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,73 +1,336 @@ - - 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); -// setMessageFlag($imapConnection, $passed_id, $passed_id, "Seen"); - - $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 ""; + 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) != " " && + substr($read[$i], 0, 1) != "&" && + trim($read[$i])) { + $pre = substr($read[$i], 0, strpos($read[$i], ":")); + $read[$i] = str_replace("$pre", "$pre", decodeHeader($read[$i])); + } + echo "$read[$i]"; + } + echo " |
";
- echo " ";
- echo " Message List ";
- echo " Delete ";
- echo " ";
+ echo "
|