aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 76030e996a..036dd28a2b 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -519,6 +519,17 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
config = mail_config_fetch ();
+ if (!check_configured() || !config->ids) {
+ GtkWidget *message;
+
+ message = gnome_warning_dialog_parented (_("You need to configure an identity\n"
+ "before you can send mail."),
+ gtk_widget_get_ancestor (GTK_WIDGET (composer),
+ GTK_TYPE_WINDOW));
+ gnome_dialog_run_and_close (GNOME_DIALOG (message));
+ return;
+ }
+
if (!from) {
CamelInternetAddress *ciaddr;