Author: Alexandru Stanoi Date: 2007-02-21 10:31:03 +0100 (Wed, 21 Feb 2007) New Revision: 4672
Log: - Fix for a bug in which the trailing parenthesis is on the last line of text instead of on a separate line. No test (very hard to reproduce). Modified: stable/Mail/1.2/src/transports/imap/imap_set.php Modified: stable/Mail/1.2/src/transports/imap/imap_set.php =================================================================== --- stable/Mail/1.2/src/transports/imap/imap_set.php 2007-02-19 21:57:41 UTC (rev 4671) +++ stable/Mail/1.2/src/transports/imap/imap_set.php 2007-02-21 09:31:03 UTC (rev 4672) @@ -127,7 +127,9 @@ if ( strpos( $data, $this->currentTag ) === false ) { $this->nextData = $this->connection->getLine(); - if ( trim( $data ) === ')' && strpos( $this->nextData, $this->currentTag ) === 0 ) + // the next code checks if the current line ends with ')' + // and the next line has the command tag (e.g. 'A0034'). + if ( substr( trim( $data ), strlen( trim( $data ) ) - 1 ) === ')' && strpos( $this->nextData, $this->currentTag ) === 0 ) { $this->hasMoreMailData = false; // remove the mail if required by the user. -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components