After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 311639 - mh: Renaming parent folder loses subfolders
mh: Renaming parent folder loses subfolders
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
pre-1.5 (obsolete)
Other All
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[folders]
Depends on:
Blocks:
 
 
Reported: 2005-07-26 18:03 UTC by Erik Iverson
Modified: 2005-08-09 04:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
should fix this and related bugs, only on 2.3 though (4.21 KB, patch)
2005-08-08 10:33 UTC, Not Zed
committed Details | Review

Description Erik Iverson 2005-07-26 18:03:24 UTC
Please describe the problem:
I store mail locally in MH-style folders.  I can create, rename, move, etc.,
these folders.  If I rename a folder with subfolders, however, the subfolders
are no longer visible through evolution.  

Steps to reproduce:
1. Select an MH-based Mail folder
2. CTRL-SHIFT F to create a new folder "tmp"
3. Select Folder tmp
4. CTRL-SHIFT F to create a new folder "tmp2"
5. Select folder tmp
6. File > Folder > Rename to rename "tmp" to "tmp1"
7. Try to find folder "tmp2"


Actual results:
The folder "tmp2" does not appear in evolution.  If you go look in your MH
directory, the folder, the subfolder, and all of the contents are still there,
evolution just can find them.  

Expected results:
The subfolder should still be accessible in the renamed parent folder.

Does this happen every time?
Yes.

Other information:
Tried restarting evolution and rebooting.  This does not occur in Exchange
server mail folders.
Comment 1 Erik Iverson 2005-07-26 18:06:53 UTC
Oops - typo - Under "Actual results:" it should say that evolution "can't find"
the subfolders in the renamed parent folder.  That's CAN NOT.  
Comment 2 André Klapper 2005-07-27 19:59:28 UTC
perhaps related to bug 248861
Comment 3 Khasim Shaheed 2005-07-28 07:19:14 UTC
Confirming the bug.
Comment 4 Erik Iverson 2005-08-02 19:52:12 UTC
The problem appears to be in the way evolution writes to the ".folders" file in
the mh-format Mail directory.  The above procedure _should_ result in .folders
containing
----
tmp1
tmp1/tmp2
====
but actually results in 
----
tmp/tmp2
tmp1
====
Quitting evolution, manually editing the .folders file to use the proper parent
directory name in the subdirectory specification, and restarting evolution shows
 that the subdirectory IS now properly listed.  So all the subdirectories /
subfolders can be recovered / restored with this manual editing process, so this
is a work-around / recovery.  
Comment 5 Not Zed 2005-08-08 10:33:37 UTC
Created attachment 50381 [details] [review]
should fix this and related bugs, only on 2.3 though
Comment 6 Not Zed 2005-08-09 04:02:09 UTC
i've applied this to 2.3 and it applied to 2.2 cleanly, so i put it there too.