From 2a9d6b7ad652d48a819555603b21d2c51fdfaa17 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 19 Mar 2001 06:11:59 +0000 Subject: Add Resend Message menu item. 2001-03-19 Jeffrey Stedfast * folder-browser-factory.c: Add Resend Message menu item. * folder-browser.c (on_right_click): Add resend to the right-click menu. * mail-callbacks.c (composer_sent_cb): Unref the message. (composer_postpone_cb): Unref the message here too. (resend_msg): New callback to allow resending of messages in the Sent folder. svn path=/trunk/; revision=8816 --- mail/folder-browser.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mail/folder-browser.c') diff --git a/mail/folder-browser.c b/mail/folder-browser.c index e9170b9148..6473df58a6 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -497,6 +497,7 @@ enum { CAN_DELETE = 16, CAN_UNDELETE = 32, IS_MAILING_LIST = 64, + CAN_RESEND = 128, }; #define SEPARATOR { "", NULL, (NULL), NULL, 0 } @@ -541,6 +542,8 @@ static EPopupMenu filter_menu[] = { static EPopupMenu menu[] = { { N_("Open"), NULL, GTK_SIGNAL_FUNC (open_msg), NULL, 0 }, + { N_("Resend"), NULL, + GTK_SIGNAL_FUNC (resend_msg), NULL, CAN_RESEND }, { N_("Save As..."), NULL, GTK_SIGNAL_FUNC (save_msg), NULL, 0 }, { N_("Print"), NULL, @@ -595,7 +598,7 @@ static EPopupMenu menu[] = { static gint on_right_click (ETable *table, gint row, gint col, GdkEvent *event, FolderBrowser *fb) { - extern CamelFolder *drafts_folder; + extern CamelFolder *sent_folder; CamelMessageInfo *info; GPtrArray *uids; int enable_mask = 0; @@ -609,6 +612,11 @@ on_right_click (ETable *table, gint row, gint col, GdkEvent *event, FolderBrowse goto display_menu; } + if (fb->folder != sent_folder) { + enable_mask |= CAN_RESEND; + hide_mask |= CAN_RESEND; + } + if (fb->mail_display->current_message == NULL) { enable_mask |= SELECTION_SET; mailing_list_name = NULL; -- cgit v1.2.3