static void export_mbox_cb (MainWindow *mainwin,
guint action,
GtkWidget *widget);
+static void export_list_mbox_cb (MainWindow *mainwin,
+ guint action,
+ GtkWidget *widget);
static void empty_trash_cb (MainWindow *mainwin,
guint action,
GtkWidget *widget);
{N_("/_File/---"), NULL, NULL, 0, "<Separator>"},
{N_("/_File/_Import mbox file..."), NULL, import_mbox_cb, 0, NULL},
{N_("/_File/_Export to mbox file..."), NULL, export_mbox_cb, 0, NULL},
+ {N_("/_File/_Export selected to mbox file..."),
+ NULL, export_list_mbox_cb, 0, NULL},
{N_("/_File/---"), NULL, NULL, 0, "<Separator>"},
{N_("/_File/Empty all _Trash folders"), "<shift>D", empty_trash_cb, 0, NULL},
{N_("/_File/---"), NULL, NULL, 0, "<Separator>"},
if (prefs_common.folderview_visible)
gtk_widget_show(folderwin);
}
+
if (type & SEPARATE_MESSAGE) {
messagewin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(messagewin),
export_mbox(mainwin->summaryview->folder_item);
}
+static void export_list_mbox_cb(MainWindow *mainwin, guint action,
+ GtkWidget *widget)
+{
+ summaryview_export_mbox_list(mainwin->summaryview);
+}
+
static void empty_trash_cb(MainWindow *mainwin, guint action,
GtkWidget *widget)
{
{
MessageView *msgview = (MessageView*)mainwin->messageview;
GSList *msginfo_list = NULL;
- gchar *body;
g_return_if_fail(msgview != NULL);
msginfo_list = summary_get_selection(mainwin->summaryview);
g_return_if_fail(msginfo_list != NULL);
-
- body = messageview_get_selection(msgview);
- compose_reply_mode((ComposeMode)action, msginfo_list, body);
- g_free(body);
+ compose_reply_from_messageview(msgview, msginfo_list, action);
g_slist_free(msginfo_list);
}