[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: Bug#45545: marked as done (Mail disappears from inbox) by Carsten Burghardt <cb@magic-shop.de>
From:       Ingo =?iso-8859-1?q?Kl=F6cker?= <kloecker () kde ! org>
Date:       2002-07-28 15:17:10
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 26 July 2002 23:58, Ingo Klöcker wrote:
> On Friday 26 July 2002 09:59, Don Sanders wrote:
> > On Tuesday 23 July 2002 07:59, Ingo Klöcker wrote:
> > > Hmm, but in some cases we regenerate the index file. But I don't
> > > know when. The only thing I know is that if the mail folders are
> > > located on an NFS server and the clock of the NFS server is ahead
> > > of the clock of the local machine then the index is rebuild
> > > everytime the folder is selected. At least this happened on a
> > > friend's machine.
> >
> > NFS is a problem. Are you able to install a test version of KMail
> > on this friends machine to help look at NFS problems that might be
> > introduced by being stricter about out of date indices?
>
> As the clock of the NFS server is now in sync with the local clock
> this problem doesn't occur anymore on my friend's machine. But I can
> reproduce the problem here with my two computers. The index file is
> rebuild everytime I select the folder.

I did some tests. For some reason the NFS client gives a wrong 
modification date of the index file. It seems to be the modification 
date of the local machine and not the (real) modification date on the 
NFS server's hard disk. OTOH, the modification date of the mbox file is 
always correct, i.e. equal to the real modification date of the mbox 
file on the NFS server's hard disk. If now the local date is behind the 
NFS server's date then the mtime of the index file is earlier then the 
mtime of the mbox file. This results in index file recreation.

I tried to workaround this problem by touching the index file after it 
has been written. If I do this on the command line then the NFS client 
gives the correct mtime. But this doesn't work in KMail.

Conclusion: NFS sucks!!! :-(

Solution for this problem: We have to store the mtime of the mbox file 
in the index file. This way the NFS server can't fool us and KMail.

Regards,
Ingo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9RAr2GnR+RTDgudgRAk8MAJ9Vk9rA+1CPb9lRqqlWcn3m/Sq8AACgl/gN
utldljPe69KwPh2FNO519tw=
=exHH
-----END PGP SIGNATURE-----
_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic