6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/5/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8468] Renaming public folder is wrong
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. .. .. ,.___ \ /| ||__| \./ [__ \/ |/\|| | | |
Comment
>> An approach might be (pseudo code): > >> > >> if ($newfolder starts with "non-empty namespace") { > >> // INBOX.test1 - should be ok to use $newfolder > >> } else { > >> if ($newfolder doesn't contain delimiter - '.' im my server) { > >> // test1 > >> $newfolder = defaultnamespace . $newfolder; > >> } elseif ($newfolder "starts with existing foldername") { > >> // i.e. group.test.test1 -> > >> // group.test exists already -> use $newfolder > >> // if a user wants to create/rename to INBOX.group.test.test1 > >> (a rare case IMHO) > >> // he has to type INBOX.group.test.test1 > >> } elseif () { > >> // other.folder > >> $newfolder defaultnamespace . $newfolder; > >> } > >> } > > > > What if the user wants to rename 'group.test.test1' to 'foo.test2'. > It would fall through to your last case and get added as > 'INBOX.foo.test2' which is not correct. > > > > There are only two ways I can think of to fix: > > 1. Look at the old mailbox name and only allow a rename within that > namespace. > > 2. Requiring the entire folder name while renaming, but this was what > was specifically refused in the previously mentioned ticket since > personal namespaces should be invisible to the user. > > > > This is why Cyrus' namespace setup has *never* made sense to me. The > default namespace should be a user's personal namespace - shared and > other folders are special folders that should live under a specific > sub-folder.
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