Monotone-Parent: a8160f433740ec8b2a14452d63e845319427b8a9
Monotone-Revision: 6942fad37af1688fabf9fedce658eafff7ae9cf7 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-10-25T15:28:06 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
0b7a73dc68
commit
3c1bb5f1d8
|
@ -1,5 +1,8 @@
|
|||
2007-10-25 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject
|
||||
-fetchFileAttachmentKeys]): fetch the attachment encoding as well.
|
||||
|
||||
* SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
|
||||
-stringForData:_datapartInfo:_info]): simplified by invoking
|
||||
-bodyDataFromEncoding: from our new NSData category methods.
|
||||
|
|
|
@ -232,20 +232,22 @@
|
|||
intoArray: (NSMutableArray *) keys
|
||||
withPath: (NSString *) path
|
||||
{
|
||||
NSDictionary *parameters, *currentFile;
|
||||
NSDictionary *disposition, *currentFile;
|
||||
NSString *filename, *mimeType;
|
||||
|
||||
parameters = [[part objectForKey: @"disposition"]
|
||||
objectForKey: @"parameterList"];
|
||||
if (parameters)
|
||||
disposition = [part objectForKey: @"disposition"];
|
||||
filename = [[disposition objectForKey: @"parameterList"]
|
||||
objectForKey: @"filename"];
|
||||
if (filename)
|
||||
{
|
||||
filename = [parameters objectForKey: @"filename"];
|
||||
mimeType = [NSString stringWithFormat: @"%@/%@",
|
||||
[part objectForKey: @"type"],
|
||||
[part objectForKey: @"subtype"]];
|
||||
currentFile = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
filename, @"filename",
|
||||
[mimeType lowercaseString], @"mimetype",
|
||||
[part
|
||||
objectForKey: @"encoding"], @"encoding",
|
||||
path, @"path", nil];
|
||||
[keys addObject: currentFile];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue