6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4965] IMAP_Tree _getList recurse and die with faulty @imap_getmailboxes()
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ \ /.___.. .__ [__) >< _/ | [__) | / \./__.|___|
Comment
> By some reason, when IMP tries to retrieve a IMAP tree, _getList to > get the children of folder encounters a folder that returns the name > of folder. > > The IMAP server is my Cyrus, and the folder is called "SharedFolders" > which is designated for the shared folders. > > In this particular case, expanding a folder "SharedFolder" resuled > "SharedFolder/mailing-lists", "SharedFolder/Records", and > "SharedFolder". > > This may be a bug of @imap_getmailboxes(). Anyhow, I did in _getList() > > > > if ($box->name && !isset($unique[$box->name])) { > > if ( ($box->name . '/%') != $path) { > > $unique[$box->name] = $box; > > } > > } > > > > to filter out $path when it's returned from @imap_getmailboxes() in > _getList(). > > > > Without the hack, it recurses and dies. > > I did not chase down @imap_getmailboxes(). For me, I'm happy with the > result as IMP now functions. But, if someone is seeing a similar > problem, I think this is worth reporting. > > You can decide IMAP_Tree::_getList() or @imap_getmailboxes() is at > fault. But, moral equivalent of hack in _getList() maybe a good > insurance to have nonetheless. > > > >
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