see changelog

Monotone-Parent: 9abbb51cbabcad645190865841814453369fa85f
Monotone-Revision: 92ce389a1151c9f1a5f222e3ad03a757f3be2bdd

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2007-11-19T00:47:07
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2007-11-19 00:47:07 +00:00
parent 73bfada6bf
commit 0cd778fdb3
6 changed files with 76 additions and 14 deletions
+10 -3
View File
@@ -312,9 +312,16 @@
if (![url hasSuffix: @"/"])
url = [url stringByAppendingString: @"/"];
/* mail relative path to body-part */
/* eg this was nil for a draft containing an HTML message */
/* if we get a message with an image/* or applicatio/*
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
other workarounds */
if (!partPath || [partPath count] == 0)
partPath = [NSArray arrayWithObject: @"0"];
/* mail relative path to body-part
eg this was nil for a draft containing an HTML message */
if ([(n = [partPath componentsJoinedByString:@"/"]) isNotNull])
url = [url stringByAppendingString:n];