[Svn] r3009 - trunk/roundcubemail/program/lib

trac at roundcube.net trac at roundcube.net
Fri Oct 2 19:12:51 CEST 2009


Author: alec
Date: 2009-10-02 12:12:51 -0500 (Fri, 02 Oct 2009)
New Revision: 3009

Modified:
   trunk/roundcubemail/program/lib/imap.inc
Log:
- simple fix in iil_C_FetchHeaders to handle "* BYE" response


Modified: trunk/roundcubemail/program/lib/imap.inc
===================================================================
--- trunk/roundcubemail/program/lib/imap.inc	2009-10-02 12:14:14 UTC (rev 3008)
+++ trunk/roundcubemail/program/lib/imap.inc	2009-10-02 17:12:51 UTC (rev 3009)
@@ -342,7 +342,6 @@
 	}
 	if ($error && preg_match('/^\* (BYE|BAD) /i', $string)) {
 		return true;
-
 	}
 	return false;
 }
@@ -1545,7 +1544,7 @@
 					$lines[++$ln] = trim($line);
 				}
 			// patch from "Maksim Rubis" <siburny at 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.

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list