Bug 156190

Summary: Restored mails should be autosaved immediatley
Product: [Applications] kmail Reporter: Wolfgang Wieser <wwieser>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: grave CC: dominik.tritscher, finex
Priority: NOR Keywords: triaged
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Wolfgang Wieser 2008-01-19 19:46:12 UTC
Version:            (using KDE 3.5.8)
Installed from:    Debian testing/unstable Packages
Compiler:          does not matter 
OS:                Linux

KMail has a cool feature storing emails which are currently composed into 
a file so that once KMail crashes and is being re-started, the unfinished 
emails appear again. 

This feature, however, has a bug: 

Directly after re-start the file containing the unfinished emails is read, 
emails are displayed as composer windows, and then the file is deleted. It will 
be re-written after some minutes. If KMail crashes during that time, the 
emails will be lost!

How to reproduce: Write an email, wait some minutes, kill KMail. 
Re-start kmail, see the composer re-appear and immediately kill kmail again. 
Re-start and you'll see your email has disappeared. 

Solution: Upon startup, do not delete the file containing the currently composed emails - or immediately re-write the file. 

This is ANNOYING since I'm currently suffering a KMail-crashes-on-copy-and-
paste-bug which I will report separately once I have enough details for you 
guys to be able to reproduce it. 

So, PLEASE: Fix this; it's probably just a one-liner!
(And I've already lost several emails due to this bug.)
Comment 1 Thomas McGuire 2008-01-19 19:51:04 UTC
See also bug 147947 and bug 98116.
Comment 2 Wolfgang Wieser 2008-01-19 19:59:48 UTC
BTW, my version is KMail-1.9.7 from KDE-3.5.8. 
Comment 3 FiNeX 2009-04-03 11:01:31 UTC
Fortunatly this bug has been fixed on KDE 4 (just tested on current trunk r947715. This doesn't means that bug 147947 can be closed. It is a different issue.
Comment 4 Dominik Tritscher 2009-04-10 23:48:02 UTC
Works fine here too with kmail 1.11.90 from trunk. I'm closing this bug.