mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 02:15:36 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user