diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-27 03:28:19 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-27 03:28:19 +0800 |
commit | 8019a39963c9f1997983157d3fe4c0187cd55967 (patch) | |
tree | e5beefc5d32d410676aea3537720bee351a8251a /composer | |
parent | 5be44051a3cd8d1e47470bfa6238011e05fa024f (diff) | |
download | gsoc2013-evolution-8019a39963c9f1997983157d3fe4c0187cd55967.tar.gz 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/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer-attachment.c | 6 |
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; |