diff options
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 9 |
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); |