aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}