mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-25 03:06:25 +00:00
Monotone-Parent: 3603f537ae09df26ee564c1a0d497a90822ed31d
Monotone-Revision: ae56889949daaa81cfc557f2e59396ea0a1c9e4b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-08-13T01:54:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -67,6 +67,7 @@ static Class MAPIStoreMailMessageK, NSDataK, NSStringK;
|
||||
if ((self = [super init]))
|
||||
{
|
||||
ASSIGN (sortOrderings, [NSArray arrayWithObject: @"ARRIVAL"]);
|
||||
fetchedCoreInfos = NO;
|
||||
}
|
||||
|
||||
return self;
|
||||
@@ -75,6 +76,7 @@ static Class MAPIStoreMailMessageK, NSDataK, NSStringK;
|
||||
- (void) cleanupCaches
|
||||
{
|
||||
[(MAPIStoreMailFolder *) container synchroniseCache];
|
||||
fetchedCoreInfos = NO;
|
||||
[super cleanupCaches];
|
||||
}
|
||||
|
||||
@@ -322,4 +324,20 @@ static Class MAPIStoreMailMessageK, NSDataK, NSStringK;
|
||||
[self cleanupCaches];
|
||||
}
|
||||
|
||||
- (int) getRow: (struct mapistore_property_data **) dataP
|
||||
withRowID: (uint32_t) rowId
|
||||
andQueryType: (enum table_query_type) queryType
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
if (!fetchedCoreInfos)
|
||||
{
|
||||
fetchedCoreInfos = YES;
|
||||
[(SOGoMailFolder *) [container sogoObject]
|
||||
prefetchCoreInfosForMessageKeys: [self restrictedChildKeys]];
|
||||
}
|
||||
|
||||
return [super getRow: dataP withRowID: rowId
|
||||
andQueryType: queryType inMemCtx: memCtx];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user