Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.4

Bug #18599 Wrong result from getAnnotation() for folder with non-ascii characters
Submitted: 2011-06-15 15:02 UTC
From: alec Assigned: doconnor
Status: Closed Package: Net_IMAP (version SVN)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2011-06-15 15:02 UTC] alec (Aleksander Machniak)
Description: ------------ If wolder contains non-ascii characters then the result is wrong. The reason is in _retrParsedResponse() which doesn't decode mailbox name. The fix is simple: --- IMAPProtocol.php 2011-06-15 10:56:59.802839004 +0200 +++ IMAPProtocol.new 2011-06-15 10:52:34.000000000 +0200 @@ -3225,7 +3225,7 @@ $this->_parseSpace($str, __LINE__, __FILE__); $attrs = $this->_arrayfyContent($str); - $result_array = array('MAILBOX' => $mailbox, + $result_array = array('MAILBOX' => $this->utf7Decode($mailbox), 'ENTRY' => $entry, 'ATTRIBUTES' => $attrs); return $result_array;

Comments

 [2012-01-02 07:41 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.