X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=b245fc4e5bcf042c7a171c28ca149d48bd607dfa;hb=45071bd636e144fe2b3a105b8e098e44bdd7228e;hp=e9f5d69ac7923c547cb4d4c943be3e5424a12373;hpb=703a0b6cbbec8f9088b92e1e5d794beea7c8b402;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index e9f5d69a..8d5409d9 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,410 +1,889 @@ '; - echo '
';
-
- $cnum = 0;
- 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) {
- if (isset($first[$i]))
- $f = $first[$i];
- if (isset($second[$i]))
- $s = nl2br($second[$i]);
- $j = $i + 1;
- while ($first[$j] == '' && $j < count($first)) {
- $s .= ' ' . nl2br($second[$j]);
- $j++;
- }
- parseEmail($s);
- if (isset($f)) echo " |