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:
Wolfgang Sourdeau
2011-08-13 01:54:07 +00:00
parent 473eddf3bc
commit bc6bbafd3c
3 changed files with 28 additions and 0 deletions

View File

@@ -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