+ gchar *account_title = modest_account_mgr_get_display_name(account_mgr, account_name);
+
+ /* The warning text depends on the account type: */
+ gchar *txt = NULL;
+ if (modest_account_mgr_get_store_protocol (account_mgr, account_name)
+ == MODEST_PROTOCOL_STORE_POP) {
+ txt = g_strdup_printf (_("emev_nc_delete_mailbox"),
+ account_title);
+ } else {
+ txt = g_strdup_printf (_("emev_nc_delete_mailboximap"),
+ account_title);
+ }