[evolution-data-server] Always enable QRESYNC where it's available.



commit 9db64a5743863861611f25cdf32bd2705e4cdd4f
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.

 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 d98a639..707dd6a 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2834,7 +2834,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]