thomascube
2008-08-14 43a27409ccbdd1ec4a50d14a42064892f3863671
Better fix for skipping untagged responses; should also work with long body structres (#1485261)

1 files modified
4 ■■■■ changed files
program/lib/imap.inc 4 ●●●● patch | view | raw | blame | history
program/lib/imap.inc
@@ -2575,8 +2575,8 @@
            do {
                $line = iil_ReadLine($fp, 5000);
                $line = iil_MultLine($fp, $line);
                list(, $index, $rest) = explode(' ', $line);
                if ($index == $id || preg_match("/^$key/", $line))
                list(, $index, $cmd, $rest) = explode(' ', $line);
                if ($cmd != 'FETCH' || $index == $id)
                    $result .= $line;
            } while (!preg_match("/^$key/", $line));