if (!summaryview->folder_item) return;
if (!prefs_common.live_dangerously) {
+ gchar *buf = NULL;
+ int num = g_list_length(GTK_CLIST(summaryview->ctree)->selection);
+ if (num == 1)
+ buf = g_strdup_printf(_(
+ "Do you really want to delete the selected message?"));
+ else
+ buf = g_strdup_printf(_(
+ "Do you really want to delete the %d selected messages?"),
+ num);
aval = alertpanel(_("Delete message(s)"),
- _("Do you really want to delete selected message(s)?"),
+ buf,
GTK_STOCK_CANCEL, "+"GTK_STOCK_DELETE, NULL);
+ g_free(buf);
if (aval != G_ALERTALTERNATE) return;
}