[evolution-data-server/gnome-2-30] Always enable QRESYNC where it's available.



commit 2d4e5270786020b4c0e7afe2180c019b02ec57ff
Author: David Woodhouse <David Woodhouse intel com>
Date:   Sat Jun 19 12:45:56 2010 +0100

    Always enable QRESYNC where it's available.
    
    This doesn't have much of an effect until we start using it, except for
    enabling the VANISHED response, and causing unsolicited fetches to have UIDs.
    (cherry picked from commit 9db64a5743863861611f25cdf32bd2705e4cdd4f)

 camel/providers/imapx/camel-imapx-server.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index cd43bf9..70f3cea 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2828,7 +2828,15 @@ imapx_reconnect (CamelIMAPXServer *is, CamelException *ex)
 		if (camel_exception_is_set (ex))
 			goto exception;
 	}
+	if (is->cinfo->capa & IMAPX_CAPABILITY_QRESYNC) {
+		ic = camel_imapx_command_new (is, "ENABLE", NULL, "ENABLE CONDSTORE QRESYNC");
+		imapx_command_run (is, ic);
+		camel_exception_xfer (ex, ic->ex);
+		camel_imapx_command_free (ic);
 
+		if (camel_exception_is_set (ex))
+			goto exception;
+	}
 	if (((CamelIMAPXStore *) is->store)->summary->namespaces == NULL) {
 		CamelIMAPXNamespaceList *nsl = NULL;
 		CamelIMAPXStoreNamespace *ns = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]