ZF-9561: Zend_Mail_Protocol_Imap::readResponse ignoring final line of return

Issue Type: Bug Created: 2010-03-29T03:02:03.000+0000 Last Updated: 2012-11-20T21:38:13.000+0000 Status: Open Fix version(s): Reporter: Mark Graeme McIntyre ( Assignee: None Tags: - Zend_Mail_Storage

Related issues: Attachments:


Zend_Mail_Protocol_Imap::readResponse contains the following code:

<pre class="literal">
302 $lines = array();
303 while (!$this->readLine($tokens, $tag, $dontParse)) {
304     $lines[] = $tokens;
305 }
307 if ($dontParse) {
308     // last to chars are still needed for response code
309     $tokens = array(substr($tokens, 0, 2));
310 }   
311 // last line has response code
312 if ($tokens[0] == 'OK') {
313     return $lines ? $lines : true;
314 } else if ($tokens[0] == 'NO'){
315     return false;
316 }   
317 return null;

This fails to allow collection of final line of response, crucial for operations such as IMAP COPY (on servers implementing UIDPLUS) where new UID is generated and returned in final line of response: " OK [COPYUID ] Done"

Zend_Mail_Protocol_Imap::readResponse should include final line in return


Posted by Mark Graeme McIntyre ( on 2010-03-29T03:04:56.000+0000

Fixed Description formatting

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.