diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-19 14:11:59 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-19 14:11:59 +0800 |
commit | 2a9d6b7ad652d48a819555603b21d2c51fdfaa17 (patch) | |
tree | c8ff30500f36b5ffe246e58e5aafb5262f972c3a /mail/folder-browser.c | |
parent | 637fc55361690fa0c572a61e862b95f3535a75b3 (diff) | |
download | gsoc2013-evolution-2a9d6b7ad652d48a819555603b21d2c51fdfaa17.tar.gz gsoc2013-evolution-2a9d6b7ad652d48a819555603b21d2c51fdfaa17.tar.zst gsoc2013-evolution-2a9d6b7ad652d48a819555603b21d2c51fdfaa17.zip |
Add Resend Message menu item.
2001-03-19 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 10 |
1 files changed, 9 insertions, 1 deletions
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; |