diff options
author | Ritesh Khadgaray <khadgaray@gmail.com> | 2009-11-20 05:08:34 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-11-20 05:08:34 +0800 |
commit | 82e862889dce6540714a90444473454e3ef9c66b (patch) | |
tree | 19da02f512fdffd883177460cfaba0bbfeacd76c /mail/e-mail-reader.c | |
parent | f11f1c477dfbdbe666ad5627ad44ac95bd7c816f (diff) | |
download | gsoc2013-evolution-82e862889dce6540714a90444473454e3ef9c66b.tar.gz gsoc2013-evolution-82e862889dce6540714a90444473454e3ef9c66b.tar.zst gsoc2013-evolution-82e862889dce6540714a90444473454e3ef9c66b.zip |
BugĀ 563555 - Confirm before forwarding many emails inline
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r-- | mail/e-mail-reader.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index 73e2621a26..847ffd2aa0 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -386,8 +386,12 @@ action_mail_forward_cb (GtkAction *action, folder = message_list->folder; folder_uri = message_list->folder_uri; uids = message_list_get_selected (message_list); + g_return_if_fail (uids != NULL); - em_utils_forward_messages (folder, uids, folder_uri); + if (em_utils_ask_open_many (window, uids->len)) + em_utils_forward_messages (folder, uids, folder_uri); + else + message_list_free_uids (message_list, uids); } static void @@ -406,8 +410,12 @@ action_mail_forward_attached_cb (GtkAction *action, folder = message_list->folder; folder_uri = message_list->folder_uri; uids = message_list_get_selected (message_list); + g_return_if_fail (uids != NULL); - em_utils_forward_attached (folder, uids, folder_uri); + if (em_utils_ask_open_many (window, uids->len)) + em_utils_forward_attached (folder, uids, folder_uri); + else + message_list_free_uids (message_list, uids); } static void @@ -426,8 +434,12 @@ action_mail_forward_inline_cb (GtkAction *action, folder = message_list->folder; folder_uri = message_list->folder_uri; uids = message_list_get_selected (message_list); + g_return_if_fail (uids != NULL); - em_utils_forward_inline (folder, uids, folder_uri); + if (em_utils_ask_open_many (window, uids->len)) + em_utils_forward_inline (folder, uids, folder_uri); + else + message_list_free_uids (message_list, uids); } static void @@ -446,8 +458,12 @@ action_mail_forward_quoted_cb (GtkAction *action, folder = message_list->folder; folder_uri = message_list->folder_uri; uids = message_list_get_selected (message_list); + g_return_if_fail (uids != NULL); - em_utils_forward_quoted (folder, uids, folder_uri); + if (em_utils_ask_open_many (window, uids->len)) + em_utils_forward_quoted (folder, uids, folder_uri); + else + message_list_free_uids (message_list, uids); } static void |