diff options
author | alecpl <alec@alec.pl> | 2009-10-02 17:12:51 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-10-02 17:12:51 +0000 |
commit | fefed62caa38a83b10f20db07467f13dcc330c70 (patch) | |
tree | d5183883abd209dfccbdf04249bb7b4b640a8e34 /program/lib | |
parent | 1bf9a86a8e080991b8c15d0fb360c06a6321c72d (diff) |
- simple fix in iil_C_FetchHeaders to handle "* BYE" response
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/imap.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc index 90938f499..437ea5949 100644 --- a/program/lib/imap.inc +++ b/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. |