[evolution-data-server] Bug #727598 - [IMAPX] Fails to list folders without NAMESPACE capability
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #727598 - [IMAPX] Fails to list folders without NAMESPACE capability
- Date: Wed, 16 Apr 2014 17:41:51 +0000 (UTC)
commit 006513ef78731cb09989d5850fb01849751e069d
Author: Milan Crha <mcrha redhat com>
Date: Wed Apr 16 19:39:55 2014 +0200
Bug #727598 - [IMAPX] Fails to list folders without NAMESPACE capability
camel/providers/imapx/camel-imapx-server.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 257212e..3768af9 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -8575,6 +8575,12 @@ camel_imapx_server_connect (CamelIMAPXServer *is,
is->priv->parser_thread = g_thread_new (
NULL, imapx_parser_thread, g_object_ref (is));
+ if (CAMEL_IMAPX_LACK_CAPABILITY (is->cinfo, NAMESPACE)) {
+ /* This also creates a needed faux NAMESPACE */
+ if (!camel_imapx_server_list (is, "INBOX", 0, cancellable, error))
+ return FALSE;
+ }
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]