[Tickets #1161] NEW: Error in utf7-imap parsing when building folder tree

bugs at bugs.horde.org bugs at bugs.horde.org
Fri Jan 14 10:37:25 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1161
-----------------------------------------------------------------------
 Ticket     | 1161
 Created By | jlaur-horde at vindvejr.dk
 Summary    | Error in utf7-imap parsing when building folder tree
 Queue      | IMP
 Version    | 4.0.1
 State      | Unconfirmed
 Priority   | 2. Medium
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


jlaur-horde at vindvejr.dk (2005-01-14 10:37) wrote:

When building the IMAP folder tree, Imp fails to parse the name correctly.
The first problem is with a folder named: Caf&AOk--du-ve'

That is: Café-du-ve'

The problem is with the é - there seems to be a '\0' after the 'f', which I
guess is causing the problem in imp/lib/Block/tree_folders.php:

$tree->addNode($parent . $mailbox['value'],
   $parent . $mailbox['parent'],
   $mailbox['label'], $indent + $mailbox['level'], false, $node_params);

I've tried to do a String::convertCharset($mailbox['label'], 'UTF7-IMAP').
This helps a bit, because the folder tree is built correctly, but the
offending folders have no name.

After the failure, the rest of the tree is missing. See screenshot:
http://www.vindvejr.dk/~jlaur/temp/imp-bug.png

This means that I can't see the rest of the Horde menu items, i.e.
"Administration", "Options", "Log out" and any other Horde modules
alphabetically after "Mail".

I hope this description helps, otherwise feel free to ask for more
information. The same problem occurs with a folder named "Nytår"
("Nyt&AOU-r"), so I guess it's a general problem with non-ascii characters.

-- 
Jacob Laursen





More information about the bugs mailing list