Monotone-Parent: 4fff03b9e04c6c05d2e2e0e2fea66011040642e4

Monotone-Revision: a811cbd171c64445b4b32261e56c4b5085787de0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-02-24T20:56:44
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau 2011-02-24 20:56:44 +00:00
parent 644b03ed8c
commit a6900ed88b
2 changed files with 8 additions and 4 deletions

View file

@ -1,5 +1,9 @@
2011-02-24 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreMailMessage.m
(_fetchAttachmentPartsInBodyInfo:withPrefix:): detect attachment
parts based on the existence of the "filename" info parameter.
* OpenChange/MAPIStoreTable.m: refactored class to be used as an
accessor on MAPIStoreFolder or other MAPIStoreObject derivatives
based on a defined set of methods. Now strictly handle the sorting

View file

@ -603,12 +603,12 @@ static Class NSExceptionK;
withPrefix: (NSString *) keyPrefix
{
NSArray *parts;
NSString *dispType;
NSDictionary *parameters;
NSUInteger count, max;
dispType = [[bodyInfo objectForKey: @"disposition"]
objectForKey: @"type"];
if ([[dispType lowercaseString] isEqualToString: @"attachment"])
parameters = [[bodyInfo objectForKey: @"disposition"]
objectForKey: @"parameterList"];
if ([[parameters objectForKey: @"filename"] length] > 0)
{
if ([keyPrefix length] == 0)
keyPrefix = @"0";