Monotone-Parent: ec5101d79c0732e3dfb2e3bf005b356548c65d58

Monotone-Revision: 18351673f3b02540c95a8695b70dd0067da408d5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-09-17T15:28:12
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2008-09-17 15:28:12 +00:00
parent 91d77156c4
commit bad7450a84
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-09-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
-fetchAttachmentIds]): if the parts have no filename associated
with them, we still return the prefix url so that we still can
access the attachment from HTML messages.
2008-09-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage -logoffAction]):

View File

@ -663,7 +663,7 @@ static BOOL debugSoParts = NO;
if ([filename length])
urlToPart = [NSString stringWithFormat: @"%@/%@", urlPrefix, filename];
else
urlToPart = nil;
urlToPart = urlPrefix;
return urlToPart;
}
@ -700,13 +700,17 @@ static BOOL debugSoParts = NO;
- (NSDictionary *) fetchAttachmentIds
{
NSMutableDictionary *attachmentIds;
NSString *prefix;
attachmentIds = [NSMutableDictionary dictionary];
[self fetchCoreInfos];
prefix = [[self soURL] absoluteString];
if ([prefix hasSuffix: @"/"])
prefix = [prefix substringToIndex: [prefix length] - 1];
[self _feedAttachmentIds: attachmentIds
withInfos: [coreInfos objectForKey: @"body"]
andPrefix: [[self soURL] absoluteString]];
andPrefix: prefix];
return attachmentIds;
}