mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-15 16:35:35 +00:00
Monotone-Parent: e287e19d922a91499f1429d7f16d9bd161d1260e
Monotone-Revision: b76df21b12b927a0f3947b610200a0571cb5d9f1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-09-24T00:10:26 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -481,7 +481,7 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data)
|
||||
NSData *changeKey;
|
||||
NSMutableDictionary *currentProperties, *messages, *mapping, *messageEntry;
|
||||
NSCalendarDate *now;
|
||||
BOOL folderWasModified = NO;
|
||||
BOOL foundChange = NO;
|
||||
|
||||
now = [NSCalendarDate date];
|
||||
[now setTimeZone: utcTZ];
|
||||
@@ -564,7 +564,7 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data)
|
||||
}
|
||||
|
||||
ldb_transaction_commit([[self context] connectionInfo]->oc_ctx);
|
||||
folderWasModified = YES;
|
||||
foundChange = YES;
|
||||
}
|
||||
|
||||
if (lastModseq)
|
||||
@@ -572,12 +572,12 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data)
|
||||
/* FIXME: the problem here is that if a delete is the last operation
|
||||
performed on a folder, the SyncLastSynchronisationDate will continuously
|
||||
get updated until a new modseq shows up */
|
||||
folderWasModified = [[(SOGoMailFolder *) sogoObject
|
||||
fetchUIDsOfVanishedItems: lastModseqNbr]
|
||||
count] > 0;
|
||||
foundChange |= [[(SOGoMailFolder *) sogoObject
|
||||
fetchUIDsOfVanishedItems: lastModseqNbr]
|
||||
count] > 0;
|
||||
}
|
||||
|
||||
if (folderWasModified)
|
||||
if (foundChange)
|
||||
{
|
||||
ti = [NSNumber numberWithDouble: [now timeIntervalSince1970]];
|
||||
[currentProperties setObject: ti
|
||||
|
||||
Reference in New Issue
Block a user