Bug 289183 - maildir resource does not detect folders with subfolders when scanning a new resource
Summary: maildir resource does not detect folders with subfolders when scanning a new ...
Status: RESOLVED NOT A BUG
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Maildir Resource (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-17 11:30 UTC by S. Burmeister
Modified: 2012-02-11 14:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2011-12-17 11:30:54 UTC
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.
Comment 1 András Manţia 2012-02-11 13:54:19 UTC
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.
Comment 2 S. Burmeister 2012-02-11 14:02:32 UTC
The "problem" is that the structure, i.e. the folders kmail2 does not see/find, was created by kmail1.
Comment 3 S. Burmeister 2012-02-11 14:07:29 UTC
BTW: ~/.Mail in my first comment should have been ~/Mail
Comment 4 S. Burmeister 2012-02-11 14:26:54 UTC
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!