X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=163a6d10d126778a3dde5348c03457de002fd4e1;hb=6a8aff8c6e6c7c4e6354de1be82508a862b456b8;hp=503eca2b4c0d2eb1d06378cc404651c67ce98aeb;hpb=f226cba750d5d3330126b17f9b8dc928a97e76fa;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index 503eca2b..163a6d10 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,603 +1,1077 @@ ' . - '
';
-
- $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 " |