Monotone-Parent: 13e8cf856590881f3dfc9b96f9f1164ba76f5969

Monotone-Revision: 07f87d18088071e4dcd72653efb4c3885f66a50f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-01-24T15:03:12
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-01-24 15:03:12 +00:00
parent 4884853a63
commit 847671bb43
3 changed files with 15 additions and 4 deletions
+7 -3
View File
@@ -303,7 +303,7 @@
if (![url hasSuffix: @"/"])
url = [url stringByAppendingString: @"/"];
/* if we get a message with an image/* or application/*
/* if we get a message with an image-* or application-*
Content-Type, we must generate a 'fake' part since our
decoded mail won't have any. Also see SOGoMailBodyPart: -fetchBLOB
and SOGoMailObject: -lookupImap4BodyPartKey: inContext for
@@ -343,7 +343,7 @@
- (NSString *) pathToAttachment
{
NSMutableString *url;
NSString *s;
NSString *s, *attachment;
SOGoMailBodyPart *bodyPart;
bodyPart = [self clientPart];
@@ -353,7 +353,11 @@
[url appendString: @"/"];
// s = [[self partPath] componentsJoinedByString: @"/"];
[url appendString: [self _filenameForAttachment: bodyPart]];
if ([bodyPart isKindOfClass: [SOGoMailBodyPart class]])
attachment = [self _filenameForAttachment: bodyPart];
else
attachment = @"0";
[url appendString: attachment];
return url;
}