aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-12-08 07:41:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-12-08 07:41:59 +0800
commitcec18e26aa44ff984e15fa71fd4dec1c21c4e328 (patch)
tree4865e049032b1a631bcf6d8db8c0cf532396bee0 /mail/mail-callbacks.c
parent640883f04d9d76a933a2410ef3f100848ad7ddfd (diff)
downloadgsoc2013-evolution-cec18e26aa44ff984e15fa71fd4dec1c21c4e328.tar.gz
gsoc2013-evolution-cec18e26aa44ff984e15fa71fd4dec1c21c4e328.tar.zst
gsoc2013-evolution-cec18e26aa44ff984e15fa71fd4dec1c21c4e328.zip
Only do a message_list_foreach if we plan on attaching messages, otherwise
2000-12-07 Jeffrey Stedfast <fejj@helixcode.com> * mail-callbacks.c (forward_message): Only do a message_list_foreach if we plan on attaching messages, otherwise just use ml->cursor_uid. * mail-ops.c (cleanup_forward_messages): If attaching multiple forwarded message, wrap them in a multipart/digest otherwise just attach the single message as a message/rfc822. svn path=/trunk/; revision=6851
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 6eb37c48d0..ac35067caf 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -488,7 +488,7 @@ forward_message (FolderBrowser *fb, gboolean attach)
cursor_msg = fb->mail_display->current_message;
g_return_if_fail (cursor_msg != NULL);
-
+
if (!check_send_configuration (fb))
return;
@@ -496,8 +496,11 @@ forward_message (FolderBrowser *fb, gboolean attach)
if (!composer)
return;
- uids = g_ptr_array_new();
- message_list_foreach (fb->message_list, enumerate_msg, uids);
+ uids = g_ptr_array_new ();
+ if (attach)
+ message_list_foreach (fb->message_list, enumerate_msg, uids);
+ else
+ g_ptr_array_add (uids, fb->message_list->cursor_uid);
gtk_signal_connect (GTK_OBJECT (composer), "send",
GTK_SIGNAL_FUNC (composer_send_cb), NULL);