aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap4/camel-imap4-store.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/camel/providers/imap4/camel-imap4-store.c b/camel/providers/imap4/camel-imap4-store.c
index aa8dfc0c0e..b7b4b4c358 100644
--- a/camel/providers/imap4/camel-imap4-store.c
+++ b/camel/providers/imap4/camel-imap4-store.c
@@ -999,6 +999,11 @@ imap4_get_folder_info (CamelStore *store, const char *top, guint32 flags, CamelE
char *pattern;
int id, i;
+ if (engine == NULL) {
+ if (!camel_service_connect ((CamelService *) store, ex))
+ return NULL;
+ }
+
if (flags & CAMEL_STORE_FOLDER_INFO_SUBSCRIBED)
cmd = "LSUB";
else