X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=05462549a88987a26c702247754b207f4e615640;hb=6a109962730487f0fcd33d55280f7da00c6f02a8;hp=88c1093faf8935f3fd0621977b50dfb47bf0a5d4;hpb=5c55c29540e62b101fcebdb779daf3309bde2709;p=squirrelmail.git
diff --git a/src/read_body.php b/src/read_body.php
index 88c1093f..05462549 100644
--- a/src/read_body.php
+++ b/src/read_body.php
@@ -1,37 +1,181 @@
-
- include("../config/config.php");
- include("../functions/strings.php");
- include("../functions/page_header.php");
- include("../functions/imap.php");
- include("../functions/mime.php");
- include("../functions/mailbox.php");
- include("../functions/date.php");
-
- $imapConnection = loginToImapServer($username, $key, $imapServerAddress);
- selectMailbox($imapConnection, $mailbox, $numMessages);
+";
+ echo "
\n";
+ echo "\n";
+ echo "";
+
+ echo "";
+ for ($i=1; $i < count($read)-1; $i++) {
+ $line = htmlspecialchars($read[$i]);
+ if (eregi("^[ |\t]", $line)) {
+ $second = $line;
+ $first = "";
+ } else if (eregi("^([^:|^\s]+):(.+)", $line, $regs)) {
+ $first = $regs[1];
+ $second = $regs[2];
+ } else {
+ $second = trim($line);
+ $first = "";
+ }
+ echo "";
+ if ($first) echo "$first:";
+ else echo " ";
+ echo " | $second | ";
+ }
+ echo " ";
+ echo " |
\n";
+ echo "