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 | |
parent | d6f7ec7b29f97a8974c473bbe32ba41c5be80f82 (diff) | |
download | gsoc2013-evolution-101e668310971c48e6a5f760c47327a7ccf95b50.tar gsoc2013-evolution-101e668310971c48e6a5f760c47327a7ccf95b50.tar.gz gsoc2013-evolution-101e668310971c48e6a5f760c47327a7ccf95b50.tar.bz2 gsoc2013-evolution-101e668310971c48e6a5f760c47327a7ccf95b50.tar.lz gsoc2013-evolution-101e668310971c48e6a5f760c47327a7ccf95b50.tar.xz 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
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index aa9c4581a9..07ca532004 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2001-07-30 Jeffrey Stedfast <fejj@ximian.com> + + * e-msg-composer.c (message_rfc822_dnd): Properly add the + message/rfc822 part. + 2001-07-27 Jason Leach <jleach@ximian.com> * e-msg-composer.c (get_signature_html): "-- \n" is 4 chars long, 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 */ |