6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
12/21/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9213] Left pane menu crash when no folder on imap server
*
Your Email Address
*
Spam protection
Enter the letters below:
__ __ .__ . ..__ / `/ `[__)\ /[__) \__.\__.| \/ [__)
Comment
> When a user has no folder in his account on our IMAP server (cyrus > 2.2), the menu in the left frame does not show up; in fact, the > request in this frame is crashing. > > Digging down the code, I found out the cause is how IMP treat the > answer to the NAMESPACE imap command. When the user has at least on > folder, the NAMESPACE command return the following: > > NAMESPACE (("" "/")) NIL (("[Shared]/" "/")) > > But when there is no folder (other than INBOX), the NAMESPACE command return: > > NAMESPACE NIL NIL (("[Shared]/" "/")) > > The way this is treated in IMP cause an entry "imp" to be inserted as > a child in the "imp" section of the menu tree, and later cause an > infinite loop when walking the menu tree, and PHP crash due to memory > exhaustion. > > I temporarily patched the horde/imp/lib/IMAP/Client.php file at line > 603 to replace > 'NAMESPACE NIL ' > by > 'NAMESPACE (("" "/")) ' > when found in the result of the NAMESPACE command, but IMP should be > able to manage the returned value > > NAMESPACE NIL NIL (("[Shared]/" "/")) > > correctly (as it IS a valid answer!) > > I tried to make a better fix, but the code that builds the menu tree > is a bit too complex for me...
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers