From 96986812f458922f012ccb7af3f149266d6ea93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20J=2E=20Hern=C3=A1ndez=20Blasco?= Date: Sat, 7 Feb 2015 00:22:45 +0100 Subject: [PATCH] oc-mail: Set content type for a message after upgrading sope 2.2.15 Now that message headers can be set dynamically, we can set the body-related headers using `setHeader` selector. This fixes emails sent using this sope version are all in plain text. --- OpenChange/MAPIStoreMailVolatileMessage.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenChange/MAPIStoreMailVolatileMessage.m b/OpenChange/MAPIStoreMailVolatileMessage.m index 6c340a721..ed9fbf8d2 100644 --- a/OpenChange/MAPIStoreMailVolatileMessage.m +++ b/OpenChange/MAPIStoreMailVolatileMessage.m @@ -900,7 +900,7 @@ MakeMessageBody (NSDictionary *mailProperties, NSDictionary *attachmentParts, NS messageBody = MakeMessageBody (properties, attachmentParts, &contentType); if (messageBody) { - [headers setObject: contentType forKey: @"content-type"]; + [message setHeader: contentType forKey: @"content-type"]; [message setBody: messageBody]; }