aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-27 03:28:19 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-27 03:28:19 +0800
commit8019a39963c9f1997983157d3fe4c0187cd55967 (patch)
treee5beefc5d32d410676aea3537720bee351a8251a /composer
parent5be44051a3cd8d1e47470bfa6238011e05fa024f (diff)
downloadgsoc2013-evolution-8019a39963c9f1997983157d3fe4c0187cd55967.tar
gsoc2013-evolution-8019a39963c9f1997983157d3fe4c0187cd55967.tar.gz
gsoc2013-evolution-8019a39963c9f1997983157d3fe4c0187cd55967.tar.bz2
gsoc2013-evolution-8019a39963c9f1997983157d3fe4c0187cd55967.tar.lz
gsoc2013-evolution-8019a39963c9f1997983157d3fe4c0187cd55967.tar.xz
gsoc2013-evolution-8019a39963c9f1997983157d3fe4c0187cd55967.tar.zst
gsoc2013-evolution-8019a39963c9f1997983157d3fe4c0187cd55967.zip
Set the mime part content-id.
2001-03-26 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Set the mime part content-id. svn path=/trunk/; revision=8951
Diffstat (limited to 'composer')
-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;