6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/10/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6827] Creation of IMAP subfolder fails
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. ..__ \ /.___ |_/ |\ |[__) >< [__ | \| \|| \/ \|
Comment
> I found the source of the issue. IMP tried to create folders > > below "INBOX" like this: "INBOX//new_folder". > > > > The error occurs in imp/lib/IMAP/Tree.php::createMailboxName($parent, $new). > > Here's a dump of the $ns_info structure: > > > > Array > > ( > > [name] => INBOX/ > > [delimiter] => / > > [type] => personal > > [hidden] => > > ) > > > > $parent is set to "INBOX", $new is "new_folder". > > > > Here's the code that computes the folder "base": > > > > $mbox = $ns_info['name']; --> mbox is "INBOX/" > > $mbox .= rtrim(substr_replace($parent, '', 0, > strlen($ns_info['name'])), $ns_info['delimiter']) . > $ns_info['delimiter']; > > > > substr_replace($parent, '', 0, strlen($ns_info['name'])) will lead to > an empty string. > > rtim() is a noop in this case. > > > > Then we append the delimiter, so this results in "INBOX//". > > > > I've developed a fix, though I don't know > > if "name -> INBOX/" is right in the first place. > >
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