Bug 230466 - Emails being composed are no longer autosaved, and lost on Kmail/Kontact shutdown.
Summary: Emails being composed are no longer autosaved, and lost on Kmail/Kontact shut...
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 232666 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-12 16:41 UTC by P B
Modified: 2010-09-10 20:54 UTC (History)
7 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 P B 2010-03-12 16:41:27 UTC
Version:           1.13.1 (using 4.4.1 (KDE 4.4.1), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.31-20-generic

Open up a new email composer window. Begin composing an email. Turn off Kontact, or request computer shutdown. What I expect (because this was the case up until recently- *possibly* post 4.4, but definitely earlier) is that when you log back in and the session is restored (successfully bringing back everything else, such as browser tabs) or when Kontact is loaded again, is that not only will the main window open, but so will any emails I was in the process of composing.

But no, not any more, they are simply lost. No trace in the drafts folder.

Autosave interval is set, non-zero, and I have made sure I have waited, just in case, for the autosaver interval to pass before logging off/shutting down. Makes no difference.

This is a regression that causes data loss.
Comment 1 Björn Ruberg 2010-03-13 18:41:47 UTC
Strange. I had a kmail crash recently and the mail draft in a composer window had been completly restored on restart. Running 4.4.0 here, so I cannot confirm.
Comment 2 Thomas McGuire 2010-04-18 15:10:50 UTC
*** Bug 232666 has been marked as a duplicate of this bug. ***
Comment 3 Matěj Laitl 2010-05-31 18:14:45 UTC
P B, it may be another much more minor problem.

Can you please try to reproduce it (e.g. start composing, than killing kmail after a while) and then navigate into $HOME/.kde4/share/apps/autosave/ folder and check if composed message is here? (in mbox format)

For me it seems that autosaving works correctly, but kmail forgets to open autosaved messages upon crash.

Matěj
Comment 4 P B 2010-05-31 23:45:28 UTC
My KDEHOME is .kde/ rather than .kde4/, and also, the folder I think corresponding to what you're talking about was in .kde/share/apps/kmail/autosave

And furthermore, it wasn't mbox format, but Maildir.

But, yes, lo and behold, there were the missing drafts. I created another email just now, closed Kontact, looked in the directory, and there it was. Restarted Kontact, but nothing was restored.
Comment 5 Terényi, Balázs 2010-06-22 15:54:26 UTC
Same here with kmail 1.13.5, the mails are in the autosave/cur folder but doesn't get opened when kmail (kontact) is restarted.
Comment 6 Sebastien Renard 2010-07-19 19:22:00 UTC
I confirm too. KMail does not open mail but autosaved mail are in .kde/share/apps/kmail/autosave/cur/xxxx
Comment 7 leo_rockway 2010-08-16 09:39:22 UTC
In my case the autosaved emails are where they should be and running kmail from konsole spits this out:

kmail(30147) KMKernel::recoverDeadLetters: Unable to open autosave file "1281943446.29825.1hPE6"
Comment 8 Björn Ruberg 2010-08-16 13:25:17 UTC
Considering this as confirmed now. Has anyone an idea why these files cannot be opened? Can you do it with a text editor?
Comment 9 leo_rockway 2010-08-16 19:19:52 UTC
(In reply to comment #8)
> Considering this as confirmed now. Has anyone an idea why these files cannot be
> opened? Can you do it with a text editor?

Yes, I can open them with a text editor without a problem. The file is 600 and owned by my user.
Comment 10 leo_rockway 2010-09-10 19:45:56 UTC
This bug is solved for me in 1.13.5 (KDEPIM 4.4.6).
Comment 11 Sebastien Renard 2010-09-10 20:52:21 UTC
I confirm. The bug is gone since 4.4.6
Comment 12 Björn Ruberg 2010-09-10 20:54:56 UTC
Very good. One less.