diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-10-12 03:33:08 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-12 03:33:08 +0800 |
commit | 377edd07b7ba473cddb65f269d3bc26a7e501f70 (patch) | |
tree | 01ed9a25fdd15a034e0c81c0984c06cf0f91c491 /mail | |
parent | 93012d3c36f8471790055e2b1bc0eb59b90765a6 (diff) | |
download | gsoc2013-evolution-377edd07b7ba473cddb65f269d3bc26a7e501f70.tar.gz gsoc2013-evolution-377edd07b7ba473cddb65f269d3bc26a7e501f70.tar.zst gsoc2013-evolution-377edd07b7ba473cddb65f269d3bc26a7e501f70.zip |
Attach the message attachments. Fixes bug #5439.
2001-10-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (do_forward_non_attached): Attach the message
attachments. Fixes bug #5439.
svn path=/trunk/; revision=13594
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 7bf2b76102..99858f0531 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-10-11 Jeffrey Stedfast <fejj@ximian.com> + + * mail-callbacks.c (do_forward_non_attached): Attach the message + attachments. Fixes bug #5439. + 2001-10-11 Dan Winship <danw@ximian.com> * mail-folder-cache.c (update_1folder): No longer need to pass diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 56b155e828..3adfe46dc7 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1121,8 +1121,8 @@ forward_get_composer (CamelMimeMessage *message, const char *subject) static void do_forward_non_attached (CamelFolder *folder, char *uid, CamelMimeMessage *message, void *data) { - char *subject, *text; MailConfigForwardStyle style = GPOINTER_TO_INT (data); + char *subject, *text; if (!message) return; @@ -1133,7 +1133,14 @@ do_forward_non_attached (CamelFolder *folder, char *uid, CamelMimeMessage *messa if (text) { EMsgComposer *composer = forward_get_composer (message, subject); if (composer) { + CamelDataWrapper *wrapper; + e_msg_composer_set_body_text (composer, text); + + wrapper = camel_medium_get_content_object (CAMEL_MEDIUM (message)); + if (CAMEL_IS_MULTIPART (wrapper)) + e_msg_composer_add_message_attachments (composer, message); + gtk_widget_show (GTK_WIDGET (composer)); e_msg_composer_unset_changed (composer); } |