X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=b245fc4e5bcf042c7a171c28ca149d48bd607dfa;hb=45071bd636e144fe2b3a105b8e098e44bdd7228e;hp=6f7e3c13849a1661d2f7826de80723644c3688d0;hpb=00b49b9ea83959dacbe2f7fb3c391c169f9c6470;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index 6f7e3c13..8d5409d9 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,445 +1,889 @@ ' . - '
';
-
- $cnum = 0;
- for ($i=1; $i < count($read); $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 " |