From 9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 25 Jan 2012 11:06:54 -0500 Subject: mail-send-recv.c: Disregard CamelNullStores. Don't want these things showing up in the Send & Receive window. --- mail/mail-send-recv.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mail') diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 05a48c47ce..266a740d87 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -37,6 +37,9 @@ #include #include +/* This is our hack, not part of libcamel. */ +#include + #include #include #include @@ -425,6 +428,10 @@ get_receive_type (CamelService *service) const gchar *uid; gboolean is_local_delivery; + /* Disregard CamelNullStores. */ + if (CAMEL_IS_NULL_STORE (service)) + return SEND_INVALID; + url = camel_service_new_camel_url (service); is_local_delivery = em_utils_is_local_delivery_mbox_file (url); camel_url_free (url); -- cgit v1.2.3