[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/kmail
From: Ingo Klöcker <ingo.kloecker () epost ! de>
Date: 2003-01-19 16:09:41
[Download RAW message or body]
CVS commit by kloecker:
Forward port from 3_1: Make index out of date checking more tolerant for maildir folders.
M +5 -2 kmfoldermaildir.cpp 1.46
--- kdepim/kmail/kmfoldermaildir.cpp #1.45:1.46
@@ -905,6 +905,9 @@ KMFolderIndex::IndexStatus KMFolderMaild
return KMFolderIndex::IndexMissing;
- return ((new_info.lastModified() > index_info.lastModified()) ||
- (cur_info.lastModified() > index_info.lastModified()))
+ // Check whether the directories are more than 5 seconds newer than the index
+ // file. The 5 seconds are added to reduce the number of false alerts due
+ // to slightly out of sync clocks of the NFS server and the local machine.
+ return ((new_info.lastModified() > index_info.lastModified().addSecs(5)) ||
+ (cur_info.lastModified() > index_info.lastModified().addSecs(5)))
? KMFolderIndex::IndexTooOld
: KMFolderIndex::IndexOk;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic