I configured my standard-folders (inbox, trash, ...) in a subfolder of my mh-box. After I scanned for new folders the standard-folders appeared again in the root-tree (only the folders with specific names, but without specific functions). This is reproducible in claws 2.7.0-rc2 under Ubuntu Edgy
Note to anyone who'd want to fix it: Hairy problem. When rescanning a folder, Claws removes the old node from the folder tree (referencing the prefs and settings), re-gets the whole tree, and re-applies the prefs. It means that folder->inbox = NULL, same for ->queue and all. No idea how to fix it yet, postponing until after 2.7 at least - because it's a complicated but not big problem.
It seems to me that following simple patch fixes the issue: Index: src/mh.c =================================================================== RCS file: /home/claws-mail/claws/src/mh.c,v retrieving revision 1.79.2.72 diff -u -r1.79.2.72 mh.c --- src/mh.c 27 May 2012 17:30:52 -0000 1.79.2.72 +++ src/mh.c 5 Jun 2012 15:06:24 -0000 @@ -756,7 +756,6 @@ } g_free(rootpath); - mh_create_tree(folder); mh_remove_missing_folder_items(folder); mh_scan_tree_recursive(item);
Created attachment 1118 [details] Proper fix Attached patch solves this more properly (i.e. creating special dirs as necessary, instead of not caring at all if any of them is missing).
Changes related to this bug have been committed. Please check latest CVS and update the bug accordingly. You can also get the patch from: http://www.claws-mail.org/tracker/ 2012-06-20 [ticho] 3.8.0cvs55 * src/mh.c Fix for bug #1090 - Standard-folders appear again after rescanning tree
Fix committed to CVS, with some additional checks compared to the patch.