[Tickets #2882] NEW: hierarchical folder rename
bugs@bugs.horde.org
bugs at bugs.horde.org
Thu Oct 27 08:59:30 PDT 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=2882
-----------------------------------------------------------------------
Ticket | 2882
Created By | dgehl at inverse.ca
Summary | hierarchical folder rename
Queue | IMP
Version | 4.0.3
State | Unconfirmed
Priority | 2. Medium
Type | Bug
Owners |
+New Attachment | folder_rename.png
-----------------------------------------------------------------------
dgehl at inverse.ca (2005-10-27 08:59) wrote:
I noticed the bug in 4.0.3, but after a look at the code in CVS, it does not
seem to be fixed yet.
When you rename a folder containing sub and sub-subfolders, the code in
lib/Folder.php (function rename) obtains the complete list of sub-folders on
the server and renames all these folders. Cyrus, since version 2, does
automatically rename all subfolders. So basically, it is not any more
necessary (when using a new version of cyrus) to rename the subfolders
'manually'. What is worse is that the users gets error messages when IMP
tries to rename a subfolder which does not any more exist under the original
name.
I see at least two possible solutions ...
1) always rename the folders in the 'right' order (starting with the most
imbricated ones)
2) rename only the main folder, then test if the folders below have already
followed and rename them only if necessary
More information about the bugs
mailing list