till
2008-02-05 a527781d5ae365c926c137a6c59895421aeab951
* added FIXME
* tried to debug a loop

1 files modified
5 ■■■■ changed files
program/lib/imap.inc 5 ●●●● patch | view | raw | blame | history
program/lib/imap.inc
@@ -162,6 +162,7 @@
    $line = '';
    if ($fp) {
        do {
            // FIXME: hardcode size?
            $buffer = fgets($fp, 2048);
            if ($buffer === false) {
                break;
@@ -176,10 +177,12 @@
    $line = chop($line);
    if (ereg('\{[0-9]+\}$', $line)) {
        $out = '';
        preg_match_all('/(.*)\{([0-9]+)\}$/', $line, $a);
        $bytes = $a[2][0];
        while (strlen($out)<$bytes) {
            $out.=chop(iil_ReadLine($fp, 1024));
            $line = iil_ReadLine($fp, 1024);
            $out .= chop($line);
        }
        $line = $a[1][0]."\"$out\"";
    }