X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=1948ed5f84d0cdfc45e882cd9592a79416014948;hb=93ea3e709f55c1ff9cb5238207500806d6508aa4;hp=d3302e3b7296158f29bbbf2c9b1f045c897b35b2;hpb=245a6892bf5c780904ef9677f24d624ea17e0749;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index d3302e3b..1948ed5f 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,406 +1,888 @@ "; - 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 " |