6.0.0-beta1
7/18/25

[#11608] Folder names with umlauts are not shown
Summary Folder names with umlauts are not shown
Queue IMP
Queue Version 6.0.0
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 10/31/2012 (4643 days ago)
Due
Updated 11/07/2012 (4636 days ago)
Assigned 11/07/2012 (4636 days ago)
Resolved 11/07/2012 (4636 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/07/2012 08:44:24 AM Thomas Jarosch Comment #13 Reply to this comment
Fixed in Horde_Imap_Client 2.1.4.
Thanks, fix is working.

Looking at the code change, my "wild guess" without ever looking at 
the code was not so bad after all :)

11/07/2012 03:54:13 AM Michael Slusarz Comment #12
State ⇒ Resolved
Reply to this comment
Fixed in Horde_Imap_Client 2.1.4.
11/07/2012 03:53:59 AM Git Commit Comment #11 Reply to this comment
Changes have been made in Git (master):

commit 9fcffbb592c90d9dbc2b2b0bcccf9c3c9ad692e9
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Nov 6 20:53:39 2012 -0700

     [mms] Fix determining subscribed mailbox list when not using 
LIST-EXTENDED (Bug #11608).

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

http://git.horde.org/horde-git/-/commit/9fcffbb592c90d9dbc2b2b0bcccf9c3c9ad692e9
11/07/2012 03:39:43 AM Michael Slusarz Comment #10
State ⇒ Assigned
Reply to this comment
I can confirm that this works with LIST-EXTENDED extension, but not 
with the base LIST commands.
11/06/2012 01:30:01 PM Thomas Jarosch Comment #9 Reply to this comment
A re-login shows this traffic:
Hmm. Not that different from my server.
Traffic after re-login:

C: [LOGIN Command - username: admin]
S: 2 OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED 
AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 COMPRESS=DEFLATE 
ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS 
NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE 
CONDSTORE SCAN IDLE LISTEXT LIST-SUBSCRIBED X-NETSCAPE URLAUTH] User 
logged in
C: 3 LSUB "" "INBOX/*"
S: * LSUB (\HasChildren) "/" "INBOX/Blorf"
S: * LSUB () "/" "INBOX/Blorf/T&AOQ-st"
S: * LSUB () "/" "INBOX/Blupper"
S: * LSUB () "/" "INBOX/F&APY-bar"
S: * LSUB () "/" "INBOX/F&APY-be"
S: * LSUB () "/" "INBOX/Normaler"
S: * LSUB () "/" "INBOX/Sent"
S: * LSUB () "/" "INBOX/T&AOQ-st"
S: * LSUB () "/" "INBOX/T&AOQA5ADk-st"
S: 3 OK Completed (0.000 secs 10 calls)
C: 4 LSUB "" "user/*"
S: 4 OK Completed (0.000 secs 1 calls)
C: 5 LSUB "" "*"
S: * LSUB (\HasChildren) "/" "INBOX/Blorf"
S: * LSUB () "/" "INBOX/Blorf/T&AOQ-st"
S: * LSUB () "/" "INBOX/Blupper"
S: * LSUB () "/" "INBOX/F&APY-bar"
S: * LSUB () "/" "INBOX/F&APY-be"
S: * LSUB () "/" "INBOX/Normaler"
S: * LSUB () "/" "INBOX/Sent"
S: * LSUB () "/" "INBOX/T&AOQ-st"
S: * LSUB () "/" "INBOX/T&AOQA5ADk-st"
S: 5 OK Completed (0.000 secs 10 calls)
C: 6 LIST "" "INBOX/*"
S: * LIST (\HasNoChildren) "/" "INBOX/Aufgaben"
S: * LIST (\HasChildren) "/" "INBOX/Blorf"
S: * LIST (\HasNoChildren) "/" "INBOX/Blorf/T&AOQ-st"
S: * LIST (\HasNoChildren) "/" "INBOX/Blupper"
S: * LIST (\HasNoChildren) "/" "INBOX/Calendar of Thomas Jarosch"
S: * LIST (\HasNoChildren) "/" "INBOX/Contacts"
S: * LIST (\HasNoChildren) "/" "INBOX/F&APY-bar"
S: * LIST (\HasNoChildren) "/" "INBOX/F&APY-be"
S: * LIST (\HasNoChildren) "/" "INBOX/Normaler"
S: * LIST (\HasNoChildren) "/" "INBOX/Notizen"
S: * LIST (\HasNoChildren) "/" "INBOX/Sent"
S: * LIST (\HasNoChildren) "/" "INBOX/Spam"
S: * LIST (\HasNoChildren) "/" "INBOX/Spamverdacht"
S: * LIST (\HasNoChildren) "/" "INBOX/T&AOQ-st"
S: * LIST (\HasNoChildren) "/" "INBOX/T&AOQA5ADk-st"

-> "LSUB" lists all those folders with umlauts.

Very wild guess: As the subscribed folders with umlauts are not sent 
to the client in the
AJAX folder list request, may be something goes wrong with the 
internal bookkeeping on the server side. Like it has an array of 
subscribed folders and the array key is sometimes the unencoded / 
encoded / double-encoded modified-UTF-7 folder name. Just a guess 
though :)
I did another test and inspected the JSON output for a folder called
"normal" and one called "täst".
Looking at the data, the JSON data for "täst" contains a field called
"un" -> "1".
A created mailbox is only subscribed if the prefs 'subscribe' value 
is true.  Maybe that's your issue.
That preference is active, it certainly works for normal folders.
During my previous IMAP traces, I could also see that a folder with 
umlaut get successfully subscribed after the creation.

11/05/2012 09:12:43 PM Michael Slusarz Comment #8
State ⇒ Feedback
Reply to this comment
With the latest changes, a new mailbox with an umlaut shows up immediately.
Still they don't get shown in the "subscribed folders" view on re-login.
Works perfectly here.

Can verify that the mailbox is created/subscribed on the server:

C: 4 CREATE "t&AOQ-st"
S: 4 OK Create completed.
C: 5 SUBSCRIBE "t&AOQ-st"
S: 5 OK Subscribe completed.

A re-login shows this traffic:

C: 3 LIST (SUBSCRIBED) "" ("*" "#shared.*" "#public2.*") RETURN (SUBSCRIBED)
[...]
S: * LIST (\Subscribed) "." "t&AOQ-st"
[...]
S: 3 OK List completed.
I did another test and inspected the JSON output for a folder called 
"normal" and one called "täst".
Looking at the data, the JSON data for "täst" contains a field 
called "un" -> "1".
A created mailbox is only subscribed if the prefs 'subscribe' value is 
true.  Maybe that's your issue.
11/05/2012 02:29:07 PM Thomas Jarosch Comment #7
State ⇒ Assigned
Reply to this comment
I can verify this to the extent that *newly* created mailboxes with 
an umlaut do not immediately appear.  However, existing umlaut 
mailboxes view fine.
With the latest changes, a new mailbox with an umlaut shows up immediately.
Still they don't get shown in the "subscribed folders" view on re-login.

I've inspected the JSON output for the "Rebuild folder list" command 
and they are not sent by the server.


I did another test and inspected the JSON output for a folder called 
"normal" and one called "täst".
Looking at the data, the JSON data for "täst" contains a field called 
"un" -> "1".

Is "un" for "unsubscribed"? The "un" field is not present for "normal".

10/31/2012 08:17:24 PM Michael Slusarz Comment #6
State ⇒ Resolved
Version ⇒ 6.0.0
Reply to this comment
Fixed in Horde_Imap_Client v2.0.1.
10/31/2012 08:17:12 PM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (master):

commit a1f338a7af943480f44f063a7835b4bc08078e32
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Wed Oct 31 14:15:14 2012 -0600

     [mms] Fix double encoding of non-ASCII elements in 
listMailboxes() (Bug #11608).

  .../Imap_Client/lib/Horde/Imap/Client/Base.php     |    7 +++--
  .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |   25 ++++++-------------
  framework/Imap_Client/package.xml                  |    2 +
  3 files changed, 14 insertions(+), 20 deletions(-)

http://git.horde.org/horde-git/-/commit/a1f338a7af943480f44f063a7835b4bc08078e32
10/31/2012 06:58:01 PM Michael Slusarz Comment #4
Assigned to Michael Slusarz
State ⇒ Assigned
Reply to this comment
I can verify this to the extent that *newly* created mailboxes with an 
umlaut do not immediately appear.  However, existing umlaut mailboxes 
view fine.
10/31/2012 12:44:34 PM Thomas Jarosch Comment #3 Reply to this comment
Has always worked perfectly fine for me, and still is.
Two more observations:
- The folder with umlaut shows up in the "Show all mailboxes view".
    It does not show up in the subscribed folders only view, even 
though it is subscribed.
- Even in the "Show all mailboxes view", the folder is not added to 
the folder list on creation.
   Folders with plain name get added immediately.

I still have the IMAP debug trace enabled and created a new folder 
"INBOX/Föbe".

# grep -A 2 "F&" imap_debug.log
C: 3 LSUB "" "INBOX/F&-APY-be"
S: 3 OK Completed (0.000 secs 1 calls)
C: 4 LIST "" "INBOX/F&-APY-be"
S: 4 OK Completed (0.000 secs 1 calls)
C: 5 LSUB "" "INBOX/F&-APY-be"
S: 5 OK Completed (0.000 secs 1 calls)
C: 6 LIST "" "INBOX/F&-APY-be"
S: 6 OK Completed (0.000 secs 1 calls)
C: 7 CREATE "INBOX/F&APY-be"
S: 7 OK Completed
C: 8 SUBSCRIBE "INBOX/F&APY-be"
S: 8 OK Completed
C: 9 LIST "" "INBOX/F&-APY-be"
S: 9 OK Completed (0.000 secs 1 calls)
C: 10 LOGOUT
--
S: * LSUB () "/" "INBOX/F&APY-be"
S: * LSUB () "/" "INBOX/T&AOQ-st"
S: 10 OK Completed (0.000 secs 6 calls)
--
S: * LSUB () "/" "INBOX/F&APY-be"
S: * LSUB () "/" "INBOX/T&AOQ-st"
S: 12 OK Completed (0.000 secs 6 calls)
--
S: * LIST (\HasNoChildren) "/" "INBOX/F&APY-be"
S: * LIST (\HasNoChildren) "/" "INBOX/Notizen"
S: * LIST (\HasNoChildren) "/" "INBOX/Spam"
--
S: * LIST (\HasNoChildren) "/" "INBOX/F&APY-be"
S: * LIST (\HasNoChildren) "/" "INBOX/Notizen"
S: * LIST (\HasNoChildren) "/" "INBOX/Spam"
--
S: * LSUB () "/" "INBOX/F&APY-be"
S: * LSUB () "/" "INBOX/T&AOQ-st"
S: 3 OK Completed (0.000 secs 6 calls)
--
S: * LSUB () "/" "INBOX/F&APY-be"
S: * LSUB () "/" "INBOX/T&AOQ-st"
S: 5 OK Completed (0.000 secs 6 calls)
--
S: * LIST (\HasNoChildren) "/" "INBOX/F&APY-be"
S: * LIST (\HasNoChildren) "/" "INBOX/Notizen"
S: * LIST (\HasNoChildren) "/" "INBOX/Spam"
--
S: * LIST (\HasNoChildren) "/" "INBOX/F&APY-be"
S: * LIST (\HasNoChildren) "/" "INBOX/Notizen"
S: * LIST (\HasNoChildren) "/" "INBOX/Spam"
--
S: * LSUB () "/" "INBOX/F&APY-be"
S: * LSUB () "/" "INBOX/T&AOQ-st"
S: 3 OK Completed (0.000 secs 6 calls)
--
S: * LSUB () "/" "INBOX/F&APY-be"
S: * LSUB () "/" "INBOX/T&AOQ-st"
S: 5 OK Completed (0.000 secs 6 calls)
--
S: * LIST (\HasNoChildren) "/" "INBOX/F&APY-be"
S: * LIST (\HasNoChildren) "/" "INBOX/Notizen"
S: * LIST (\HasNoChildren) "/" "INBOX/Spam"
--
S: * LIST (\HasNoChildren) "/" "INBOX/F&APY-be"
S: * LIST (\HasNoChildren) "/" "INBOX/Notizen"
S: * LIST (\HasNoChildren) "/" "INBOX/Spam"
--
S: * LIST (\HasNoChildren) "/" "INBOX/F&APY-be"
S: * LIST (\HasNoChildren) "/" "INBOX/Notizen"
S: * LIST (\HasNoChildren) "/" "INBOX/Spam"
--
S: * LIST (\HasNoChildren) "/" "INBOX/F&APY-be"
S: * LIST (\HasNoChildren) "/" "INBOX/Notizen"
S: * LIST (\HasNoChildren) "/" "INBOX/Spam"
--
C: 3 SELECT "INBOX/F&APY-be"
S: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
--
C: 4 MYRIGHTS "INBOX/F&APY-be"
S: * MYRIGHTS INBOX/F&APY-be lrswipkxtecda
S: 4 OK Completed
C: 5 LOGOUT

10/31/2012 10:57:21 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Has always worked perfectly fine for me, and still is.
10/31/2012 10:51:45 AM Thomas Jarosch Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Summary ⇒ Folder names with umlauts are not shown
Type ⇒ Bug
Queue ⇒ IMP
Reply to this comment
Hi,

I've just discovered that the dynamic and traditional view of IMP 
ignore folders with umlauts in the name. Creating new folders with 
umlauts works fine though.

The Kolab_Share driver also succesfully displays shares with umlauts 
in the name.

Thomas

Saved Queries