Bug 50218 - kmail inbox index (maildir) becomes out of sync
Summary: kmail inbox index (maildir) becomes out of sync
Status: RESOLVED DUPLICATE of bug 43931
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.4.7
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-05 10:13 UTC by Michael Lachmann
Modified: 2009-12-25 15:01 UTC (History)
2 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 Michael Lachmann 2002-11-05 10:13:46 UTC
Version:           1.4.7 (using KDE 3.0.8 (KDE 3.1 beta2))
Installed from:     (sid)
Compiler:          gcc version 2.95.4 20011002 (Debian prerelease)
OS:          Linux (i686) release 2.4.19-686

From time to time my inbox (which is in maildir format) indexes seem to get out of sync. When that happens, if I click on a message, I see 'subject unknown, from unknown', instead of the real subject/author. Exiting kmail, deleting all the .index files for inbox and restarting kmail fixes the problem. Till now I haven't had an e-mail corruption from this bug.
This bug is very similar to what happens if you access a mbox mailbox with an external program, like mutt, except that in this case I did not access the maildir from an external program.
I don't know how to reproduce the bug, except that it happened maybe 3-4 times already. The latest time, I started kmail for the first time since reboot. I ppp-ed into my account and downloaded ~30 new messages. Then I suspended my laptop. The next day I opened the laptop, and the inbox was out-of sync. I noticed this while downloading new messages, so I stoped the download, exited kmail, deleted the .index files and restarted, and all was well.
How can I provide usefull information to track this bug?
Comment 1 Michael Lachmann 2002-11-05 10:35:32 UTC
Some more information that is probably relevant: my filesystem is ext3, and before the reboot the computer shut down when the battery died - at that time kmail was probably running. 
Comment 2 Ingo Klöcker 2002-11-05 11:10:59 UTC
The problem is that KMail doesn't write the index of the currently open folder until this 
folder is left and KMail doesn't write the index of the five system folders (inbox is one 
of them) until KMail is quit. In your case KMail wasn't shutdown cleanly and this 
resulted in the problems you reported. 
To prevent this problem from occurring again please always quit KMail when you 
stop working with you laptop (or alternatively make sure that your laptop never runs 
out of energy). 
Comment 3 Matthias Wanjek 2003-03-29 22:24:18 UTC
I have the same problem with kmail 1.4.3 KDE 3.0.5 (Suse 8.1 installed from DVD  
followed by online update). I'm using it as a pop3 Client. On my old Athlon 500  
MHz I've never had a problem with kmail. maildir-Format ist selected and "Alle  
Ordner komprimieren". This problem first occured with my new P4 2.6 GHz.  
Comment 4 Stephan Kulow 2003-09-25 19:21:14 UTC

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