X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=48ad331b76c7b9daff01b5fd1bd192095cf01408;hb=978d53dc15fe1c5d883dccc415ab531f470ef455;hp=e49e67577e2ea9b0e31d89ddec6e8e5c8692301a;hpb=b9511169354b5d70446d3a811f8c09699f399bdf;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index e49e6757..48ad331b 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,442 +1,1076 @@ '; - echo '
';
-
- $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 " |