[evolution-groupwise] Bug #673424 - Crash on displaying attachment
- From: Vibha Yadav <yvibha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-groupwise] Bug #673424 - Crash on displaying attachment
- Date: Wed, 4 Apr 2012 09:21:47 +0000 (UTC)
commit a1bad598b8babaf37e8f7b5f2c07c8346625a4c9
Author: Vibha Yadav <yvibha suse com>
Date: Wed Apr 4 14:47:43 2012 +0530
Bug #673424 - Crash on displaying attachment
Consider the default MIME type to be "multipart/mixed".
src/camel/camel-groupwise-folder.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-groupwise-folder.c b/src/camel/camel-groupwise-folder.c
index 407e3a4..8af7752 100644
--- a/src/camel/camel-groupwise-folder.c
+++ b/src/camel/camel-groupwise-folder.c
@@ -2286,8 +2286,11 @@ groupwise_folder_item_to_msg (CamelFolder *folder,
} else {
camel_mime_part_set_content(part, attachment, len, "text/plain");
}
+ /*According to rfc2046#section-5.1.3
+ * Any "multipart" subtypes that an implementation does not recognize
+ * must be treated as being of subtype "mixed"*/
if (!has_boundary)
- camel_data_wrapper_set_mime_type(CAMEL_DATA_WRAPPER (multipart),"multipart/digest");
+ camel_data_wrapper_set_mime_type(CAMEL_DATA_WRAPPER (multipart),"multipart/mixed");
camel_multipart_set_boundary (multipart, NULL);
camel_multipart_add_part (multipart, part);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]