diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-31 01:04:09 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-31 01:04:09 +0800 |
commit | 101e668310971c48e6a5f760c47327a7ccf95b50 (patch) | |
tree | 800cf699d3c9101975dfe8c26a3a9e530b3d17d2 /composer/e-msg-composer.c | |
parent | d6f7ec7b29f97a8974c473bbe32ba41c5be80f82 (diff) | |
download | gsoc2013-evolution-101e668310971c48e6a5f760c47327a7ccf95b50.tar.gz gsoc2013-evolution-101e668310971c48e6a5f760c47327a7ccf95b50.tar.zst gsoc2013-evolution-101e668310971c48e6a5f760c47327a7ccf95b50.zip |
Properly add the message/rfc822 part.
2001-07-30 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (message_rfc822_dnd): Properly add the
message/rfc822 part.
svn path=/trunk/; revision=11478
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index fc9d0516b0..0586b3b12f 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1991,6 +1991,7 @@ message_rfc822_dnd (EMsgComposer *composer, CamelStream *stream) while (camel_mime_parser_step (mp, 0, 0) == HSCAN_FROM) { CamelMimeMessage *message; + CamelMimePart *part; message = camel_mime_message_new (); if (camel_mime_part_construct_from_parser (CAMEL_MIME_PART (message), mp) == -1) { @@ -1998,9 +1999,15 @@ message_rfc822_dnd (EMsgComposer *composer, CamelStream *stream) break; } + part = camel_mime_part_new (); + camel_mime_part_set_disposition (part, "inline"); + camel_medium_set_content_object (CAMEL_MEDIUM (part), + CAMEL_DATA_WRAPPER (message)); + camel_mime_part_set_content_type (part, "message/rfc822"); e_msg_composer_attachment_bar_attach_mime_part (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar), - CAMEL_MIME_PART (message)); + part); camel_object_unref (CAMEL_OBJECT (message)); + camel_object_unref (CAMEL_OBJECT (part)); camel_exception_clear (ex); /* skip over the FROM_END state */ |