Bug 83209 - KMail refuses to start when ~/Mail/inbox has cur, but not tmp or new subdirs
Summary: KMail refuses to start when ~/Mail/inbox has cur, but not tmp or new subdirs
Status: RESOLVED DUPLICATE of bug 124111
Alias: None
Product: kmail
Classification: Applications
Component: maildir (show other bugs)
Version: 1.10.90
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
: 86304 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-11 12:24 UTC by Jim Higson
Modified: 2009-12-25 19:11 UTC (History)
3 users (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 Jim Higson 2004-06-11 12:24:25 UTC
Version:           version with KDE 3.2.2 - 1.6 I think (using KDE KDE 3.2.2)
Installed from:    RedHat RPMs
OS:                Linux

I've been using KMail for some time, but when I started it as usual I get a dialogue with the warning:

Error while creating file inbox:
Operation not permitted

and when I click ok I get the error message:

Cannot create file `inbox' in /home/jim/Mail.
KMail cannot start without it.

Why it would want to create the inbox I don't know, the folder ~/Mail/inbox is already present, and there haven't been any recent changes to the system.

Hopefully someone can find what the problem is. Thanks for your work on KMail, I really appreciate the first class job you're doing.
Comment 1 Ingo Klöcker 2004-06-12 00:06:46 UTC
Is ~/Mail/inbox a directory? If yes, does it contain a directories named "new", "cur" and "tmp"?
Comment 2 Jim Higson 2004-06-12 00:13:10 UTC
Yes, there is (or rather was, see below) a ~/Mail/inbox but it only has directory cur.

I later 'fixed' this by renaming the Mail folder and restarting KMail, which is kinda taking a sledgehammer to the problem. It recreated the Mail folders etc and worked fine, minus all my mail. For now I'll just read the old mail in a text editor, luckily I won't need most of it again.
Comment 3 Till Adam 2004-07-18 16:43:24 UTC
Jim, the missing new/ and tmp/ subdirectories under inbox are required, along with the cur/ one, for a valid maildir. For some reason they are/were missing in your Mail/inbox directory which prompted KMail to refuse startup, as it was not able to use or create a valid inbox file/dir under ~/Mail. I agree that KMail should handle this more gracefully, but it did not crash and the circumstances were beyond KMail's control. I'll therefore change the severity and description of this bug.
Comment 4 Gerco Dries 2004-08-30 19:54:20 UTC
I have the same problem, without any visible cause KMail (1.6.2) won't start anymore with the above error. After creating the new and tmp directories in inbox, outbox, sent-mail and trash, KMail starts again.

After creating the new and tmp directories in all my folders, they are back and working as well. 

Perhaps this will help you track down the problem, perhaps not, but KMail also seems to have forgotten in what folders I wanted my different accounts delivered and says: "<account> has no mailbox defined ..."
Comment 5 Jaydeep Marathe 2004-12-23 04:20:13 UTC
Hi,

I ran into a very similar problem. I have been using Kmail 1.6.2 on KDE 3.2.2-6 Red Hat for a couple of months. It has always worked smoothly for me till now. Now when I tried to start kmail it said: "Error while creating file sent-mail: Operation not permitted". 

When I click ok I get the error message: 
 
 Cannot create file `sent-mail' in /home/jpmarath/Mail. 
 KMail cannot start without it.

"sent-mail" is present in the directory, though Mail/sent-mail contained only the "cur" sub-directory (missing "new" and "tmp" sub-directories).

After manually creating these sub-directories, on restarting it complained with the same message  for "drafts" and "trash" folders. These directories were also missing "new" and "tmp" sub-directories, which I then created manually. This fixed the problem, and Kmail works normally now. (and I didn't lose any messages).

thanks,
-Jaydeep
Comment 6 Thomas McGuire 2007-07-17 14:14:35 UTC
See also bug 86304.
Comment 7 George Kiagiadakis 2008-09-14 11:18:48 UTC
I can reproduce this problem with kmail svn r860337. What I did is I removed the "new" subdirectory of my inbox and tried to start kmail. What I got was:

First warning message (appears twice!):
Error opening /home/gkiagia/.kde/share/apps/kmail/mail/inbox/new; this folder is missing.

Second error message:
KMail encountered a fatal error and will terminate now.
The error was:
You do not have read/write permission to your inbox folder.

I also tried to do that with a new test folder. First I removed its "tmp" subfolder and kmail displayed a similar warning, but not an error and the folder appeared although it was not usable. Then I also removed its "new" subfolder and the "test" folder completely disappeared from kmail without any warnings or errors.

I believe kmail could just create these folders if they do not exist.
Comment 8 George Kiagiadakis 2008-09-14 15:41:05 UTC
*** Bug 86304 has been marked as a duplicate of this bug. ***
Comment 9 Björn Ruberg 2009-12-25 19:11:10 UTC

*** This bug has been marked as a duplicate of bug 124111 ***