Bug 51557 - Index out of date with fresh config and IMAP
Summary: Index out of date with fresh config and IMAP
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-06 03:26 UTC by Nathaniel W. Turner
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathaniel W. Turner 2002-12-06 03:26:24 UTC
Version:           KDE_3_1_BRANCH from 2002-12-05 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.2 Built Debian packages using debian/rules in CVS
OS:          Linux

Here is what I did to trigger this bug:
1. Install recent kmail
2. Remove ~/.kde/share/config/kmailrc and ~/.kde/share/apps/kmail
3. Run kmail
4. Add IMAP account
5. Kmail sprouts an "Index out of date" error dialog for every folder in my account (about 150+ folders)

First of all, I don't understand how kmail's index could be out of date for those folders -- it shouldn't even have an index for those folders yet -- there was no ~/.kde/share/apps/kmail folder when I ran it.

Secondly, I don't see why anyone would want to know when the index is out of date.  It's just a cache, right?  Konqueror doesn't alert me every time I request a URI that isn't in it's page cache, for example.
Comment 1 Carsten Burghardt 2002-12-06 08:32:44 UTC
Subject: Re: Index out of date with fresh config and IMAP

This error is only shown if the index exists and is out of date. 
Are you sure that you deleted the dirs from the correct location (is .kde 
used?) and that kmail didn't run in the background?

Comment 2 Ingo Klöcker 2002-12-06 10:01:30 UTC
Unfortunately one can get some of those dialogs even with completely new IMAP accounts. 
When I added the news.uslinuxtraining.com public IMAP server (which has 1000+ folders) I 
received about 20 warnings although the NFS server is in sync with my local machine. I intend 
to make the date comparison a little bit less strict, i. e. allow a few seconds difference. 
 
And to answer Nathaniel's last question: The index files contain information about the status of 
the messages (e. g. marked as deleted, replied to, important, forwarded) which currently is lost 
when the index is regenerated. Therefore we show this warning to let the user know why the 
heck deleted messages reappear. In the past we received a lot of bug reports about this and 
that's why we decided to show a warning (which can be disabled as you will have noticed) 
instead of silently regenerating the index files. 
 
Please check whether the clocks of your NFS server and your local machine are in sync. 
 
Comment 3 Ingo Klöcker 2002-12-08 23:07:52 UTC
Subject: Re:  New: Index out of date with fresh config and IMAP

KMail now allows up to five seconds time difference between the clock of 
the NFS server and the clock of the local machine. This will prevent 
any false alerts caused by only slightly out-of-sync clocks. Greater 
time differences have to be prevented by the system administrator by 
using e. g. xntpd to sync the clocks of all computers.