X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fread_body.php;h=fc08e01c9992679a421c5e37bb3cbf18aee81d8d;hp=609635c538ac00cf7859080089e2f01f582f5a0d;hb=bc94707193083bed407443b3b9e1f101992b77c8;hpb=cc24baddd4a099aec10687ccc8bf5e69dbcf22da diff --git a/src/read_body.php b/src/read_body.php index 609635c5..d9a7fbe7 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,404 +1,865 @@ "; - echo "
";
-
- for ($i=1; $i < count($read)-1; $i++) {
- $line = htmlspecialchars($read[$i]);
- if (eregi("^>", $line)) {
- $second[$i] = $line;
- $first[$i] = " ";
- $cnum++;
- } else if (eregi("^[ |\t]", $line)) {
- $second[$i] = $line;
- $first[$i] = "";
- } else if (eregi("^([^:]+):(.+)", $line, $regs)) {
- $first[$i] = $regs[1] . ":";
- $second[$i] = $regs[2];
- $cnum++;
- } else {
- $second[$i] = trim($line);
- $first[$i] = "";
- }
- }
- for ($i=0; $i < count($second); $i = $j) {
- $f = $first[$i];
- $s = nl2br($second[$i]);
- $j = $i + 1;
- while ($first[$j] == "" && $j < count($first)) {
- $s .= " " . nl2br($second[$j]);
- $j++;
- }
- parseEmail($s);
- echo " |