aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-01-26 00:06:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-01-26 00:08:25 +0800
commit9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3 (patch)
tree83672c3f19f708aa80fa3f0a9efc025d58028ef8 /mail
parent2f0a2919d734ccc59e86c42c667a22b46290699e (diff)
downloadgsoc2013-evolution-9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3.tar
gsoc2013-evolution-9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3.tar.gz
gsoc2013-evolution-9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3.tar.bz2
gsoc2013-evolution-9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3.tar.lz
gsoc2013-evolution-9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3.tar.xz
gsoc2013-evolution-9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3.tar.zst
gsoc2013-evolution-9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3.zip
mail-send-recv.c: Disregard CamelNullStores.
Don't want these things showing up in the Send & Receive window.
Diffstat (limited to 'mail')
-rw-r--r--mail/mail-send-recv.c7
1 files changed, 7 insertions, 0 deletions
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 <libemail-utils/e-account-utils.h>
#include <libemail-utils/mail-mt.h>
+/* This is our hack, not part of libcamel. */
+#include <libemail-engine/camel-null-store.h>
+
#include <libemail-engine/e-mail-folder-utils.h>
#include <libemail-engine/e-mail-session.h>
#include <libemail-engine/mail-folder-cache.h>
@@ -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);