aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer-attachment.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index a45a2ef123..0d477c959f 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-26 Jeffrey Stedfast <fejj@ximian.com>
+
+ * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Set
+ the mime part content-id.
+
2001-03-19 Radek Doulik <rodo@ximian.com>
* listener.c (reply_indent): set default text color
diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c
index 796004c283..0255cd4e4c 100644
--- a/composer/e-msg-composer-attachment.c
+++ b/composer/e-msg-composer-attachment.c
@@ -153,6 +153,7 @@ e_msg_composer_attachment_new (const gchar *file_name)
CamelStream *stream;
struct stat statbuf;
gchar *mime_type;
+ char *content_id;
g_return_val_if_fail (file_name != NULL, NULL);
@@ -186,6 +187,11 @@ e_msg_composer_attachment_new (const gchar *file_name)
else
camel_mime_part_set_filename (part, file_name);
+ /* set the Content-Id */
+ content_id = header_msgid_generate ();
+ camel_mime_part_set_content_id (part, content_id);
+ g_free (content_id);
+
new = e_msg_composer_attachment_new_from_mime_part (part);
new->size = statbuf.st_size;