aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-15 23:24:40 +0800
committerDan Winship <danw@src.gnome.org>2000-06-15 23:24:40 +0800
commit86c38b418e5b2e6aac95409c40c073f60115e22e (patch)
tree5afb40ddac12263a13d9bce0a74069d737350cd8 /mail/mail-ops.c
parent927da631980f20b076109939190fa6c20b75bf8e (diff)
downloadgsoc2013-evolution-86c38b418e5b2e6aac95409c40c073f60115e22e.tar
gsoc2013-evolution-86c38b418e5b2e6aac95409c40c073f60115e22e.tar.gz
gsoc2013-evolution-86c38b418e5b2e6aac95409c40c073f60115e22e.tar.bz2
gsoc2013-evolution-86c38b418e5b2e6aac95409c40c073f60115e22e.tar.lz
gsoc2013-evolution-86c38b418e5b2e6aac95409c40c073f60115e22e.tar.xz
gsoc2013-evolution-86c38b418e5b2e6aac95409c40c073f60115e22e.tar.zst
gsoc2013-evolution-86c38b418e5b2e6aac95409c40c073f60115e22e.zip
if the document requests an unknown URL, it's not an error; just ignore
* mail-display.c (on_url_requested): if the document requests an unknown URL, it's not an error; just ignore the URL. * mail-ops.c (fetch_mail): If there's no new mail, tell the user. svn path=/trunk/; revision=3574
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c8
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);