mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-06 07:36:24 +00:00
Monotone-Parent: 5ed8893c9ab3c60ce85c27df45014ec4a47897e6
Monotone-Revision: e0611ca83ac30e5f04e33422e44b877e6ddd058c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-30T14:34:10 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -397,6 +397,7 @@
|
||||
NSMutableDictionary *attachmentIds;
|
||||
UIxMailPartViewer *parent;
|
||||
unsigned int count, max;
|
||||
NSMutableString *url;
|
||||
NSString *baseURL;
|
||||
NSArray *parts;
|
||||
|
||||
@@ -408,16 +409,20 @@
|
||||
isEqualToString: @"UIxMailPartAlternativeViewer"])
|
||||
{
|
||||
baseURL = [[self clientObject] baseURLInContext: context];
|
||||
url = [NSMutableString new];
|
||||
[url appendString: baseURL];
|
||||
[url appendFormat: @"/%@", [partPath componentsJoinedByString: @"/"]];
|
||||
[url deleteCharactersInRange: NSMakeRange([url length] - 3, 2)];
|
||||
parts = [[parent bodyInfo] objectForKey: @"parts"];
|
||||
max = [parts count];
|
||||
for (count = 0; count < max; count++)
|
||||
[self _convertReferencesForPart: [parts objectAtIndex: count]
|
||||
withCount: count + 1
|
||||
andBaseURL: baseURL
|
||||
andBaseURL: url
|
||||
intoDictionary: attachmentIds];
|
||||
[url release];
|
||||
}
|
||||
|
||||
NSLog(@"attc: '%@'", attachmentIds);
|
||||
return attachmentIds;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user