X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fread_body.php;h=e4ee9458c33815ce9d25dd46b0cd69ac01890845;hp=fe54f5af4808d7046aca9e8a067092d1cc792b50;hb=10f0ce7221de24677e1d3443d0a57df50a4ae805;hpb=be921d7a94bedfc4b913a60531da8f5e807387d5 diff --git a/src/read_body.php b/src/read_body.php index fe54f5af..e4ee9458 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -1,603 +1,649 @@ ' . - '
';
-
- $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);
+ echo ' ' . + '
|