Monotone-Parent: 0bb415c672cf6fa29a94c71cfade196c42eeb58a

Monotone-Revision: dc1a04dbd8c664b75c03181a48283724ed5866b2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-15T20:22:27
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-07-15 20:22:27 +00:00
parent 72f379b931
commit 792fb895f7
10 changed files with 105 additions and 116 deletions

View File

@@ -85,6 +85,14 @@ static Class NSExceptionK, MAPIStoreSentItemsFolderK, MAPIStoreDraftsFolderK;
MAPIStoreDraftsFolderK = [MAPIStoreDraftsFolder class];
}
- (id) init
{
if ((self = [super init]))
fetchedAttachments = NO;
return self;
}
- (int) getPrIconIndex: (void **) data
inMemCtx: (TALLOC_CTX *) memCtx
{
@@ -786,15 +794,15 @@ static Class NSExceptionK, MAPIStoreSentItemsFolderK, MAPIStoreDraftsFolderK;
- (NSArray *) childKeysMatchingQualifier: (EOQualifier *) qualifier
andSortOrderings: (NSArray *) sortOrderings
{
if (!attachmentKeys)
if (!fetchedAttachments)
{
attachmentKeys = [NSMutableArray new];
attachmentParts = [NSMutableDictionary new];
[self _fetchAttachmentPartsInBodyInfo: [sogoObject bodyStructure]
withPrefix: @""];
fetchedAttachments = YES;
}
return attachmentKeys;
return [super childKeysMatchingQualifier: qualifier
andSortOrderings: sortOrderings];
}
- (id) lookupChild: (NSString *) childKey