6.0.0-alpha14
6/25/25

[#12541] Horde_Imap_Client: getMetaData() mailbox name encoding
Summary Horde_Imap_Client: getMetaData() mailbox name encoding
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 08/07/2013 (4340 days ago)
Due
Updated 08/08/2013 (4339 days ago)
Assigned
Resolved 08/07/2013 (4340 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/08/2013 12:02:29 PM Thomas Jarosch Comment #4 Reply to this comment
Works perfect.

Thank you for the quick fix!

08/07/2013 11:18:20 PM Michael Slusarz Comment #3
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Horde_Imap_Client 2.12.1.
08/07/2013 11:18:13 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 912004ec0155586696b1eafd9593feea44f64346
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Wed Aug 7 17:17:04 2013 -0600

     [mms] Translate mailbox names from UTF7-IMAP -> UTF-8 in return 
from Horde_Imap_Client_Base#getMetadata() (Bug #12541).

  .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |   83 +++++++++++--------
  framework/Imap_Client/package.xml                  |    4 +-
  2 files changed, 50 insertions(+), 37 deletions(-)

http://git.horde.org/horde-git/-/commit/912004ec0155586696b1eafd9593feea44f64346
08/07/2013 03:32:42 PM Thomas Jarosch Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Horde_Imap_Client: getMetaData() mailbox name encoding
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
Hi,

I just found out Horde_Imap_Client::getMetaData() returns modified 
UTF-7 encoded mailbox names.
This happens with an ANNOTATEMORE based cyrus server.

The more common listMailbox() function returns the mailbox names as UTF-8.

Is this the desired behavior? IMHO the API would be more consistent
if all mailbox names are encoded as UTF-8.


The Kolab_Storage code brute-force converts all mailbox names from 
modified UTF-7 to UTF-8,
even the output of listMailboxes(). That does not look right either... 
but it's a separate issue :o)

Cheers,
Thomas

Saved Queries