[evolution-mapi] Bug #671638 - Trouble reading S/MIME messages
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug #671638 - Trouble reading S/MIME messages
- Date: Thu, 8 Mar 2012 13:38:36 +0000 (UTC)
commit 56e98add236b336300b56b0ea63f7c52e781f2d5
Author: Milan Crha <mcrha redhat com>
Date: Thu Mar 8 14:37:56 2012 +0100
Bug #671638 - Trouble reading S/MIME messages
src/libexchangemapi/e-mapi-mail-utils.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/libexchangemapi/e-mapi-mail-utils.c b/src/libexchangemapi/e-mapi-mail-utils.c
index 0a510d4..3b0ee93 100644
--- a/src/libexchangemapi/e-mapi-mail-utils.c
+++ b/src/libexchangemapi/e-mapi-mail-utils.c
@@ -1268,7 +1268,7 @@ e_mapi_mail_do_smime_signed (EMapiObject *object,
uint32_t ui32;
uint64_t data_cb = 0;
uint8_t *data_lpb = NULL;
- gchar *content_type_str;
+ gchar *content_type_str, *content_type_unfolded;
g_free (*pmsg_class);
*pmsg_class = g_strdup ("IPM.Note.SMIME.MultipartSigned");
@@ -1297,14 +1297,16 @@ e_mapi_mail_do_smime_signed (EMapiObject *object,
dw = CAMEL_DATA_WRAPPER (multipart);
type = camel_data_wrapper_get_mime_type_field (dw);
content_type_str = camel_content_type_format (type);
+ content_type_unfolded = camel_header_unfold (content_type_str);
#define wstr(str) camel_stream_write (content_stream, str, strlen (str), cancellable, NULL)
wstr("Content-Type: ");
- wstr(content_type_str);
- wstr("\n\n");
+ wstr(content_type_unfolded);
+ wstr("\r\n\r\n");
#undef wstr
g_free (content_type_str);
+ g_free (content_type_unfolded);
camel_data_wrapper_write_to_stream_sync (dw, (CamelStream *) content_stream, cancellable, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]