Bug 124111

Summary: create maildir folders (cur/, new/, tmp/) if they don't exist
Product: [Unmaintained] kmail Reporter: gjditchfield
Component: maildirAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: arekm, jh, null, winter
Priority: NOR    
Version: 1.12.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.9.0
Sentry Crash Report:

Description gjditchfield 2006-03-23 02:26:34 UTC
Version:            (using KDE KDE 3.5.1)
Installed from:    Ubuntu Packages
Compiler:           4.0.2? (Kubuntu "breezy badger")
OS:                Linux

I restored my Mail directory from a version control system that does not track empty directories.  When I launched Kmail, I got a dialog box saying "Error opening /home/gjditchf/Mail/inbox/new; this folder is missing" (three times), then "KMail encountered a fatal error and will terminate now.  The error was: You do not have read/write permissions to your inbox folder".  The permissions on the Mail/inbox directory are rwxr-xr-x.  inbox/tmp is also missing. After I created inbox/new and inbox/dir directories, KMail gave similar error messages about Mail/trash/new and Mail/trash/tmp.

Perhaps KMail could just create the folders when it finds they are missing?
Comment 1 Philip Rodrigues 2006-09-19 21:25:41 UTC
Retitling and recategorising to reflect behaviour described in the comment
Comment 2 gjditchfield 2009-11-10 21:13:07 UTC
This bug is still present in "KMail Version 1.12.2 Using KDE 4.3.2 (KDE 4.3.2)", as distributed with Kubuntu 9.10.
Comment 3 Björn Ruberg 2009-12-25 19:11:10 UTC
*** Bug 83209 has been marked as a duplicate of this bug. ***
Comment 4 Unknown 2012-06-24 16:55:11 UTC
This bug is now fixed. Look at release KDE 4.9

What happens:
- some situations with kmail1 and early kmail2 where a configuration file wasn't store properly.
- the user deletes or looses a configuration file.

The first case was fixed by Tobias 2012-02-12.
For the second case, kmail2 has now a procedure to repair the configuration.

In fact, the bug doesn't occur at kmail2 but at akonadi_agent_launcher as a resource for maildir
will be build, even if the configuration file (such as "akonadi_maildir_resource_0rc") is missing.
This will be now detected and repaired.
Thanks to Kevin for choaching.
Comment 5 Myriam Schweingruber 2012-08-18 09:12:38 UTC
*** Bug 278726 has been marked as a duplicate of this bug. ***