X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fread_body.php;h=6e02591c3a6a42db8c45cf2b3e0aecd7f334102d;hb=10ff0c3db7070161d7b8280b971f26688678d9a2;hp=d73fd0e0ca524da937d0a4b3857ba37c59fced09;hpb=5bc39e3fc7064e14c4257f4c36bf22a35d056a36;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index d73fd0e0..6e02591c 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,403 +1,666 @@ "; - 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 " |