[SimpleMail-usr] Re: Improvements to handling of folder indices

  • From: "Sebastian Bauer" <mail@xxxxxxxxxxxxxxxxxxx>
  • To: <simplemail-usr@xxxxxxxxxxxxx>
  • Date: Fri, 15 Oct 2004 22:15:35 +0200

Hello,

Kulwant Bhogal wrote:
> At the moment if many messages are downloaded into various folders
> and the machine crashes before I have quit SimpleMail then for some
> reason when SimpleMail is restarted the folder statistics dissappear
> and each folder has to be reloaded to regenerate the statistics.
>
> However, I thought that SimpleMail kept the statistics up to date by
> appending new mails to the end of the index without loading it
> (that's how you explained the "fast move to folder" worked), in which
> case the index on disk is always up-to-date anyway isn't it?

It isn't. The index is marked as obsolette as soon as you move a mail into a
folder (may it be a folder which you have already viewed or not).
Information of additional mails within a not yet loaded folder is stored
within the internal memory only and not appended to the index to get the
best possible speed when moving.

The new mails are only appended to the end of the indexfile if you quit
SimpleMail. In that case the indexfile is flaged as current. But if that
doesn't happen, the whole index have to be rebuilt.

> If so, why does a crash wipe them out? Can this be changed?

There is probably a need for an auto save function, which would store the
indexfile every given time period. But ideally SimpleMail doesn't crash ;)

Ciao,
Sebastian

__________________________________________________________________________
SimpleMail mailing list   -   //www.freelists.org/list/simplemail-usr
Listserver help.: mailto:simplemail-usr-request@xxxxxxxxxxxxx?Subject=HELP
Unsub....: mailto:simplemail-usr-request@xxxxxxxxxxxxx?Subject=UNSUBSCRIBE

Other related posts: