Bug 180267

Summary: Kmail corrupts inbox index - messes up message datestamps
Product: [Unmaintained] kmail Reporter: tony
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: casus, diego.ml, sigma01
Priority: NOR    
Version: 1.10.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: valgrind log of Kmail session
Crash output
Result of attaching GDB to Kmail after crash

Description tony 2009-01-10 16:43:00 UTC
Version:           1.10.3 (using KDE 4.1.3)
OS:                Linux
Installed from:    Ubuntu Packages

I got a pop-up from Kmail (stupidly I didn't make a note of the exact text) saying roughly that the in-box index had been corrupted and it was going to re-build it, but that I would lose something (markings? attributes?) in the process.

After I clicked OK to let it run, a number of messages were displaying an incorrect date (in 2006, even though they were from this year or last year) so were sorted wrongly according to date. Clicking on any message in the message list caused the correct date to appear and that message to be sorted correctly.

I have observed similar things in previous cases where Kmail has been closed uncleanly (usually due to an X crash) and I have had to remove the existing index in order to be get it rebuilt properly and to see messages.

By luck, this occurred while I was running Kmail with valgrind for another problem, so I have a trace which I have attached. The actual problem occurred at roughly line 1300 in the file, but I have included the entire trace in case there is something relevant there.
Comment 1 tony 2009-01-10 16:43:40 UTC
Created attachment 30099 [details]
valgrind log of Kmail session
Comment 2 Nils M. 2009-02-21 19:39:13 UTC
I can confirm this behavior in KMail 1.11.0 from the OpenSuSE KDE 4.2.0 factory-rpms. After rebuilding the index my messages all had "unknown" set as date. Nothing seems to help except clicking every message or maybe restoring from a backup (I will try this now).
Comment 3 tony 2009-03-04 17:26:05 UTC
Created attachment 31773 [details]
Crash output
Comment 4 tony 2009-03-04 17:26:45 UTC
Created attachment 31774 [details]
Result of attaching GDB to Kmail after crash
Comment 5 tony 2009-03-04 17:29:31 UTC
Sorry, the last two attachments are not actually relevant to this bug.

There seems to be a bug in this system which means that after I update bug 176688, an attachment meant for it lands here instead.

Time to raise another bug...
Comment 6 Diego 2009-07-28 09:01:39 UTC
A user in our forum experienced the same issue under:
OpenSUSE 11.1
KDE 4.2.4
Kmail 1.11.4

Link to the forum thread (in italian):
http://www.kde-it.org/e107_plugins/forum/forum_viewtopic.php?2189.last
Comment 7 Anton Petrusevich 2009-08-11 00:01:29 UTC
I am also experiencing this bug with KMail Version 1.12.0
Using KDE 4.3.00 (KDE 4.3.0). Distribution is Debian Sid. The date is "unknown" in message list and clicking on the message restores the date. It's really annoying.
Comment 8 Christophe Marin 2009-08-17 17:22:41 UTC

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