diff options
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 3ad9a4fe57..2e5100b5cb 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -228,6 +228,14 @@ fetch_mail (GtkWidget *button, gpointer user_data) } } + if (camel_folder_get_message_count (folder, ex) == 0) { + gnome_ok_dialog ("No new messages."); + goto cleanup; + } else if (camel_exception_is_set (ex)) { + mail_exception_dialog ("Unable to get new mail", ex, fb); + goto cleanup; + } + /* apply filtering rules to this inbox */ filter = filter_driver_new(); userrules = g_strdup_printf ("%s/filters.xml", evolution_dir); |