"; echo "
";
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) {
$f = $first[$i];
$s = nl2br($second[$i]);
$j = $i + 1;
while ($first[$j] == "" && $j < count($first)) {
$s .= " " . nl2br($second[$j]);
$j++;
}
parseEmail($s);
echo " |