aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2011-12-19 21:53:17 +0800
committerChenthill Palanisamy <pchenthill@novell.com>2011-12-19 22:54:15 +0800
commit0b5671411919aa9197f410532a923e2dcafe6a0d (patch)
tree9ecd6b69f411cfbff607625ed9e9124afc249b9d /mail
parent2022f95f7bb9574c158282ab94e138ab412a6af7 (diff)
downloadgsoc2013-evolution-0b5671411919aa9197f410532a923e2dcafe6a0d.tar
gsoc2013-evolution-0b5671411919aa9197f410532a923e2dcafe6a0d.tar.gz
gsoc2013-evolution-0b5671411919aa9197f410532a923e2dcafe6a0d.tar.bz2
gsoc2013-evolution-0b5671411919aa9197f410532a923e2dcafe6a0d.tar.lz
gsoc2013-evolution-0b5671411919aa9197f410532a923e2dcafe6a0d.tar.xz
gsoc2013-evolution-0b5671411919aa9197f410532a923e2dcafe6a0d.tar.zst
gsoc2013-evolution-0b5671411919aa9197f410532a923e2dcafe6a0d.zip
Do not load disabled services while creating new folder
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index 2ee275d098..aa2500cb7c 100644
--- a/mail/em-folder-utils.c
+++ b/mail/em-folder-utils.c
@@ -42,6 +42,7 @@
#include "e-util/e-mktemp.h"
#include "e-util/e-alert-dialog.h"
+#include "e-util/e-account-utils.h"
#include "em-vfolder-rule.h"
@@ -571,6 +572,7 @@ em_folder_utils_create_folder (GtkWindow *parent,
for (link = list; link != NULL; link = g_list_next (link)) {
CamelService *service;
CamelStore *store;
+ EAccount *account;
const gchar *uid, *prop = NULL;
service = CAMEL_SERVICE (link->data);
@@ -592,6 +594,10 @@ em_folder_utils_create_folder (GtkWindow *parent,
if (prop && !e_shell_settings_get_boolean (shell_settings, prop))
continue;
+ account = e_get_account_by_uid (uid);
+ if (account && !account->enabled)
+ continue;
+
em_folder_tree_model_add_store (model, store);
}