[evolution-data-server/gnome-2-30] Calculate can_qresync after fetching STATUS (cherry picked from commit 23bdeb12ef3b8a4b6d63f8dd00859



commit 79c7f35db6186c5524da2a42ad92c8dab70c37bd
Author: David Woodhouse <David Woodhouse intel com>
Date:   Wed Jun 30 13:22:25 2010 +0100

    Calculate can_qresync after fetching STATUS
    (cherry picked from commit 23bdeb12ef3b8a4b6d63f8dd008594feca760540)

 camel/providers/imapx/camel-imapx-server.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 27769b4..f8cd95f 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -3703,9 +3703,6 @@ imapx_job_refresh_info_start (CamelIMAPXServer *is, CamelIMAPXJob *job)
 	if ((isum->modseq && !ifolder->modseq_on_server))
 		need_rescan = FALSE;
 
-	if (is->use_qresync && isum->modseq && ifolder->uidvalidity_on_server)
-		can_qresync = TRUE;
-
 	/* If we don't think there's anything to do, poke it to check */
 	if (!need_rescan) {
 		CamelIMAPXCommand *ic;
@@ -3761,6 +3758,9 @@ imapx_job_refresh_info_start (CamelIMAPXServer *is, CamelIMAPXJob *job)
 
 	}
 
+	if (is->use_qresync && isum->modseq && ifolder->uidvalidity_on_server)
+		can_qresync = TRUE;
+
 	e(printf("folder %s is %sselected, total %u / %u, unread %u / %u, modseq %llu / %llu, uidnext %u / %u: will %srescan\n",
 		 folder->full_name, is_selected?"": "not ", total, ifolder->exists_on_server,
 		 folder->summary->unread_count, ifolder->unread_on_server,



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