summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-02 17:12:51 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-02 17:12:51 +0000
commit1e7144a038a9c99f4267ba5cc087129dbbf6e24b (patch)
tree190b1c5f8e794a078f8452618954360c945295b6
parentce2dc0a3061bbede2fd1240c9b54a45a0ca784af (diff)
- simple fix in iil_C_FetchHeaders to handle "* BYE" response
git-svn-id: https://svn.roundcube.net/trunk@3009 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/lib/imap.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc
index 90938f499..437ea5949 100644
--- a/roundcubemail/program/lib/imap.inc
+++ b/roundcubemail/program/lib/imap.inc
@@ -342,7 +342,6 @@ function iil_StartsWithI($string, $match, $error=false) {
}
if ($error && preg_match('/^\* (BYE|BAD) /i', $string)) {
return true;
-
}
return false;
}
@@ -1545,7 +1544,7 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false, $bo
$lines[++$ln] = trim($line);
}
// patch from "Maksim Rubis" <siburny@hotmail.com>
- } while (trim($line[0]) != ')' && strncmp($line, $key, strlen($key)));
+ } while ($line[0] != ')' && !iil_StartsWith($line, $key, true));
if (strncmp($line, $key, strlen($key))) {
// process header, fill iilBasicHeader obj.