Summary | Renaming public folder is wrong |
Queue | IMP |
Queue Version | 4.3.4 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | slusarz (at) horde (dot) org |
Requester | frank.richter (at) hrz (dot) tu-chemnitz (dot) de |
Created | 07/31/2009 (5817 days ago) |
Due | |
Updated | 01/13/2010 (5651 days ago) |
Assigned | 08/05/2009 (5812 days ago) |
Resolved | 08/06/2009 (5811 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | 4.3.5 |
Patch | No |
Bug #8468: changeloghttp://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-git&r1=e17b03b8b829d220cfd08745c4601c9ad9f8c4a8&r2=890e3714e4e703d757718d0c08c9efaa082c7122
Bug #8468: Another stab at renaming fixhttp://git.horde.org/diff.php/imp/folders.php?rt=horde-git&r1=8b659fe604f4a3a6af9ea1509029198bdaafa4e3&r2=5b9484944bd31302510bc2223a8ba6f1f5b826bd
http://git.horde.org/diff.php/imp/lib/IMP.php?rt=horde-git&r1=25e9e426a4d2e25f90ca3685559df73aaaab02f0&r2=5b9484944bd31302510bc2223a8ba6f1f5b826bd
Bug #8468: Doing too much magic on rename folder name - we have totrust the user at some point.
http://git.horde.org/diff.php/imp/folders.php?rt=horde-git&r1=df8c626194789a61214771c8b5ac07fa870bdc8b&r2=8b659fe604f4a3a6af9ea1509029198bdaafa4e3
Bug #8468: When appending namespaces, search for empty namespace.http://git.horde.org/diff.php/imp/lib/Imap.php?rt=horde-git&r1=df8c626194789a61214771c8b5ac07fa870bdc8b&r2=ba5fce1be74c5d90f085e622b806eae53d4acc38
State ⇒ Resolved
so I didn't notice this. And thanks for helping to resolve this issue.
http://cvs.horde.org/diff.php/imp/docs/CHANGES?rt=horde&r1=1.699.2.399&r2=1.699.2.400&ty=u
http://cvs.horde.org/diff.php/imp/folders.php?rt=horde&r1=2.309.2.45&r2=2.309.2.46&ty=u
$old_names = array_map('trim', explode("\n",
Horde_Util::getFormData('old_names')));
$new_names = array_map('trim', explode("\n",
Horde_Util::getFormData('new_names')));
to:
$old_names = array_map('trim', explode("\n",
Util::getFormData('old_names')));
$new_names = array_map('trim', explode("\n",
Util::getFormData('new_names')));
(otherwise it exits - empty page in browser).
With this, yes, it works:
- renaming folder in INBOX namespace
- renaming folder within shared namespace
- renaming a shared folder to INBOX: Give INBOX.foldername as new
folder name, that's ok.
Thank you very much,
Frank
http://cvs.horde.org/diff.php/imp/folders.php?rt=horde&r1=2.309.2.44&r2=2.309.2.45&ty=u
toplevel folders
in public namespace, so INBOX.foo.test2 is the only solution.
1. Look at the old mailbox name and only allow a rename within that
namespace.
was specifically refused in the previously mentioned ticket since
personal namespaces should be invisible to the user.
default namespace should be a user's personal namespace - shared and
other folders are special folders that should live under a specific
sub-folder.
In a GUI this moving of folders between namespaces is easier ...
Frank
created) are restricted to that particular namespace. So we will go
with option
#1.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.
auto-magically add namespace information.
Renaming group.* (namespace '') folder is ok, renaming in INBOX
namespace is wrong.
I'd like to rename "test" (in INBOX) to "test1",
IMP aks for new name for "test" (not "INBOX.test"), I give "test1"
This leads to: Rename INBOX.test test1 -> Permission denied
It's a bit tricky for IMP to detect which namespace a folder should go
to (if an "empty" namespace '' exists).
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;
}
}
Frank
auto-magically add namespace information.
http://cvs.horde.org/diff.php/imp/folders.php?rt=horde&r1=2.309.2.43&r2=2.309.2.44&ty=u
Bug #2874.Renaming test to test1 (in INBOX) leads to IMAP command
Rename INBOX.test test1 -> Permission denied
Thanks,
Frank
State ⇒ Feedback
Milestone ⇒ 4.3.5
http://cvs.horde.org/diff.php/imp/lib/IMP.php?rt=horde&r1=1.449.4.126&r2=1.449.4.127&ty=u
State ⇒ Assigned
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Summary ⇒ Renaming public folder is wrong
Type ⇒ Bug
Queue ⇒ IMP
we have a IMAP server (cyrus) with this namespace:
NAMESPACE (("INBOX." ".")) (("user." ".")) (("" "."))
We've so-called group mailboxes, aka group.test.folder1
Renaming such a folder within IMP's folder screen moves this folder
below user's INBOX, i.e.
rename group.test.folder1 to group.test.folder2
leads to INBOX.group.test.folder2, but not to group.test.folder2
IMAP command is
Rename group.test.folder1 INBOX.group.test.folder2
Any help is appreciated.
Regards,
Frank