Version: unspecified (using KDE 4.7.2) OS: Linux Adding a maildir resource and pointing it to a maildir with folders with subfolders does not find the folders with subfolders but only folders without subfolders. Creating the subfolders within kmail2 works. Reproducible: Always Steps to Reproduce: Create a maildir folder outside kmail. ~/.Mail add folders to it including one with subfolders folder_a (including cur/new/tmp) folder_b (c/n/t) .folder_c (including subsubfolder_a (c/n/t)) now create an akonadi maildir resource and point it to ~/Mail Actual Results: It finds folders a and b but not c Expected Results: It should find all folders.
Here is the copy of my mail to the kde-pim ML: The problem is that it is not straightforward to support both the KMail style maildir layout and the dovecot style Maildir++. For the following structure: Folder1 Folder2 Folder3 KMail(1&2) uses this: Folder1 cur new tmp .Folder1.directory - contains the subfolders of Folder1 cur new tmp Folder2 cur new tmp .Folder2.directory - subfolder for Folder2 Folder3 Dovecot would need this as: Folder1 cur new tmp .Folder2 cur new tmp .Folder2.Folder3 cur new tmp As you can see they are completely different. In dovecot style sub- subdirectories are not layed out as such on the file system. Sincerely I'd just keep the current layout as it is and not bother with "real" subdirectories. This will make bug 289183 a wontfix and will require user intervention to import completely the folder structure.
The "problem" is that the structure, i.e. the folders kmail2 does not see/find, was created by kmail1.
BTW: ~/.Mail in my first comment should have been ~/Mail
This bug is invalid because I made a wrong assumption. I assumed that .Folder1.directory was enough to have a sub-folder, which is wrong in maildir. Further in the structure created by kmail1 the top-folder was a mbox file, i.e.: Folder1 _file_ .Folder1.directory folder with lots of maildir subfolders If I create Folder1 including cur, new and tmp akonadi/kmail2 do pick-up the sub-folders in .Folder1.directory. My bad, apologies for wasting your time!