- /* mail content checks and dialogs */
- if (data->subject == NULL || data->subject[0] == '\0') {
- GtkResponseType response;
- response = modest_platform_run_confirmation_dialog (GTK_WINDOW (edit_window),
- _("mcen_nc_subject_is_empty_send"));
- if (response == GTK_RESPONSE_CANCEL) {
- g_free (account_name);
- return;
- }
- }
-
- if (data->plain_body == NULL || data->plain_body[0] == '\0') {
- GtkResponseType response;
- gchar *note_message;
- gchar *note_subject = data->subject;
- if (note_subject == NULL || note_subject[0] == '\0')
- note_subject = _("mail_va_no_subject");
- note_message = g_strdup_printf (_("emev_ni_ui_smtp_message_null"), note_subject);
- response = modest_platform_run_confirmation_dialog (GTK_WINDOW (edit_window),
- note_message);
- g_free (note_message);
- if (response == GTK_RESPONSE_CANCEL) {
- g_free (account_name);
- return;
- }
- }
-
- modest_platform_information_banner (NULL, NULL, _("mcen_ib_outbox_waiting_to_be_sent"));