[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-29 21:37:56
[Download RAW message or body]

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

On Monday 29 July 2002 10:52, Don Sanders wrote:
> On Monday 29 July 2002 01:17, Ingo Klöcker wrote:
> > 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!!! :-(
>
> (silent disagreement)

So you think NFS doesn't suck? Then why does it not work as expected? 
It's been around since such a long time already that such problems 
should really have been fixed in the meantime. As this is not the case 
I have to come to the conclusion that NFS is broken by design. 
Unfortunately, I don't know of any alternatives.

> > 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.
>
> Well um, that can't work. That would defeat the whole purpose of
> checking to see if the file was out of date.
>
> If we did that then if someone (exited KMail and) modified the mbox
> file using an external program then the index file wouldn't be
> regenerated. This would mean the index file would be out of date and
> that could lead to mbox corruption.

You didn't understand me correctly. What I want to do is the following:
1.) Write the mbox file.
2.) Get the mtime of the mbox file.
3.) Write the index file and store the mtime of the mbox file inside the 
index file.

If now someone modified the mbox file then the mtime of the mbox file 
would be different from the mtime which is stored in the index file. 
This means the index file and the mbox file are out of sync and we have 
to regenerate the index file. Do I miss something?

Additionally we could store the size of the mbox file in the index file 
so that we would also be able to detect modifications by mutt (with a 
very high probability). FYI, I heard that mutt does modify mbox files 
without changing the mtime.

Regards,
Ingo

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

iD8DBQE9RbW1GnR+RTDgudgRAgU8AKC6yYWBc9fFDfuREbrUNqxbi8nheACcCtSa
MKNTq+hkbpSwATSqJTsrkic=
=VhlD
-----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