[evolution-data-server/evolution-data-server-3-12] Bug #727598 - [IMAPX] Fails to list folders without NAMESPACE capability



commit e188db5eb2bb5629b2a546111736d31169c3c947
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 2ab6b5b..45e3e77 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -8574,6 +8574,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]