aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/em-composer-utils.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b83042ffb5..0f0e6bda5d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2007-07-26 Sankar P <psankar@novell.com>
+
+ * Committed on behalf of Atos Origin Communication Systems
+ <support-syscom@osorigin.com>
+ * em-composer-utils.c: (em_utils_send_receipt):
+ - Fixes malformed body part headers for a MDN
+ See bug #458275
+
2007-07-26 Hiroyuki Ikezoe <poincare@ikezoe.net>
* em-folder-browser.c: (emfb_search_search_activated): Plugged memory
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index c4a886ecc6..5a6d9dbd8f 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1239,15 +1239,15 @@ em_utils_send_receipt (CamelFolder *folder, CamelMimeMessage *message)
/* Create the machine-readable receipt */
receipt_data = camel_data_wrapper_new ();
- type = camel_content_type_new ("message", "disposition-notification");
- camel_data_wrapper_set_mime_type_field (receipt_data, type);
- camel_content_type_unref (type);
stream = camel_stream_mem_new ();
part = camel_mime_part_new ();
ua = g_strdup_printf ("%s; %s", hostname, "Evolution " VERSION SUB_VERSION " " VERSION_COMMENT);
recipient = g_strdup_printf ("rfc822; %s", self_address);
+ type = camel_content_type_new ("message", "disposition-notification");
+ camel_data_wrapper_set_mime_type_field (CAMEL_DATA_WRAPPER (part), type);
+ camel_content_type_unref (type);
camel_medium_add_header (CAMEL_MEDIUM (part), "Reporting-UA", ua);
camel_medium_add_header (CAMEL_MEDIUM (part), "Final-Recipient", recipient);
camel_medium_add_header (CAMEL_MEDIUM (part), "Original-Message-ID", message_id);