[Bug 58954] Split kmailrc (was: All settings lost on power loss)

Kai Krakow kai at kaishome.de
Wed Mar 11 17:42:13 GMT 2009


https://bugs.kde.org/show_bug.cgi?id=58954





--- Comment #16 from Kai Krakow <kai kaishome de>  2009-03-11 18:42:07 ---
So reading the URL from comment #15 I have another suspect: kmailrc handling is
completely okay, but the filesystem may destroy it. I'm running on XFS, not
Ext4 - but it probably has the same behaviour (consistence over preservation),
as I read XFS zeroes out files with unwritten data blocks during log replay.

So a good idea would be to keep a backup of the original file which kmail
should use if the current file looks unusable.

I assume kmail already tries an atomic update by creating a tmp file and then
renaming to the original file name. Should be easy to rename the original file
to the backup first. This is not strictly atomic now but with my suggestion
kmail can easily recover from the missing-rc-file-case by using the backup if
no standard rc file can be found.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list