Bug 34190 - make kmail mail state saving more robust
Summary: make kmail mail state saving more robust
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: 1.3
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 54657 124657 163962 192661 194281 217608 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-27 15:48 UTC by Felix Buenemann
Modified: 2012-08-19 01:12 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Buenemann 2001-10-27 15:44:44 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kmail
Version:           1.3 (using KDE 2.2.1 )
Severity:          wishlist
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:                Linux (i686) release 2.4.10-ac9
OS/Compiler notes: 

Hi

it would be nice if you could make the saving of kmail mail state (I mean the file that stores which mails have been already downloaded from mailbox when not deleting mails on server) more robust against kmail or system crashes.

Because if it's corrupted kamil refetches all mails in case this happens which can be quite annoying with thousands of mails... :(

How anout saving a backup to the mailstate file prior to writing to it and calculate a checksum to verify integrity (and use backup if it fails)?

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Michael H 2001-10-27 18:00:55 UTC
On Saturday 27 October 2001 17:44 atmosfear@users.sourceforge.net wrote:
>
> it would be nice if you could make the saving of kmail mail state (I mean
> the file that stores which mails have been already downloaded from mailbox
> when not deleting mails on server) more robust against kmail or system
> crashes.
>
> Because if it's corrupted kamil refetches all mails in case this happens
> which can be quite annoying with thousands of mails... :(
>
> How anout saving a backup to the mailstate file prior to writing to it and
> calculate a checksum to verify integrity (and use backup if it fails)?

Actually the file is first written under a different name and then renamed to 
the original name.

What exactely happened when this file got corrupted?

Regards
Michael Häckel
Comment 2 Felix Buenemann 2001-10-27 19:27:14 UTC
On Saturday 27. October 2001 20:00 Michael Häckel wrote:
> On Saturday 27 October 2001 17:44 atmosfear@users.sourceforge.net wrote:
> > it would be nice if you could make the saving of kmail mail state (I mean
> > the file that stores which mails have been already downloaded from
> > mailbox when not deleting mails on server) more robust against kmail or
> > system crashes.
> >
> > Because if it's corrupted kamil refetches all mails in case this
> > happens which can be quite annoying with thousands of mails... :(
> >
> > How anout saving a backup to the mailstate file prior to writing to it
> > and calculate a checksum to verify integrity (and use backup if it
> > fails)?
>
> Actually the file is first written under a different name and then renamed
> to the original name.
>
> What exactely happened when this file got corrupted?
KMail then refetches all mail from the mail server even those that were 
already previously downloaded which results in a large amount of duplicate 
mails.

Btw. same effect happens when you change the configuration of an account from 
pop3 to pop3s should I do this as a seperate bugreport?

>
> Regards
> Michael Häckel

-- 
Best Regards
Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________
Linux is like a Wigwam no Gates no Windows and Apache inside.
Comment 3 Michael H 2001-10-27 20:17:04 UTC
On Saturday 27 October 2001 21:27 Felix Buenemann wrote:
>
> KMail then refetches all mail from the mail server even those that were
> already previously downloaded which results in a large amount of duplicate
> mails.

Yes I know. However I actually was interested in how you got it corrupted.

> Btw. same effect happens when you change the configuration of an account
> from pop3 to pop3s should I do this as a seperate bugreport?

This is something I didn't think of yet but should probably fixed. Currently 
we indentify a server by username host and port and not by the account name.

Regards
Michael Häckel
Comment 4 Felix Buenemann 2001-10-27 20:46:09 UTC
On Saturday 27. October 2001 22:17 Michael Häckel wrote:
> On Saturday 27 October 2001 21:27 Felix Buenemann wrote:
> > KMail then refetches all mail from the mail server even those that were
> > already previously downloaded which results in a large amount of
> > duplicate mails.
>
> Yes I know. However I actually was interested in how you got it corrupted.
hmm fetching mail whilem it's still fetching computer hangs completely so I 
have to switch power of and back on after reboot starting kmail and 
fetching mails it refetches...

>
> > Btw. same effect happens when you change the configuration of an account
> > from pop3 to pop3s should I do this as a seperate bugreport?
>
> This is something I didn't think of yet but should probably fixed.
> Currently we indentify a server by username host and port and not by the
> account name.
yes I noticed thatbut kmail could simply rename that file when changing 
account configuration.

>
> Regards
> Michael Häckel

-- 
Best Regards
Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________
640K are ought to be enough.
- Bill Gates
Comment 5 Björn Ruberg 2009-12-16 00:21:29 UTC
*** Bug 54657 has been marked as a duplicate of this bug. ***
Comment 6 Björn Ruberg 2009-12-25 22:50:35 UTC
*** Bug 124657 has been marked as a duplicate of this bug. ***
Comment 7 Björn Ruberg 2010-01-26 00:54:03 UTC
*** Bug 163962 has been marked as a duplicate of this bug. ***
Comment 8 Björn Ruberg 2010-02-28 00:34:54 UTC
*** Bug 192661 has been marked as a duplicate of this bug. ***
Comment 9 Björn Ruberg 2010-02-28 01:39:00 UTC
*** Bug 194281 has been marked as a duplicate of this bug. ***
Comment 10 Björn Ruberg 2010-03-07 23:54:55 UTC
*** Bug 217608 has been marked as a duplicate of this bug. ***
Comment 11 Myriam Schweingruber 2012-08-18 08:15:18 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 12 Luigi Toscano 2012-08-19 01:12:27 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.