[evolution] mail-send-recv.c: Disregard CamelNullStores.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] mail-send-recv.c: Disregard CamelNullStores.
- Date: Wed, 25 Jan 2012 16:08:30 +0000 (UTC)
commit 9d2db80938f6c7213a3a4e4c27857dbe8f7a2da3
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Jan 25 11:06:54 2012 -0500
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 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 05a48c4..266a740 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]