[evolution-data-server/gnome-2-30] Fix starting UID in QRESYNC SELECT.



commit 011ed3a2b8d0d336405e06c87aed2e48ecd51698
Author: David Woodhouse <David Woodhouse intel com>
Date:   Wed Jun 30 11:08:54 2010 +0100

    Fix starting UID in QRESYNC SELECT.
    
    The indices in the folder summary count from zero, not one.
    (cherry picked from commit ac6557eb872437e4d7b44fc01d9eafcc404b4d8e)

 camel/providers/imapx/camel-imapx-server.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index c730cd8..27769b4 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2384,7 +2384,7 @@ imapx_select (CamelIMAPXServer *is, CamelFolder *folder, gboolean forced, CamelE
 		const gchar *uid = "1";
 
 		if (total)
-		    uid = camel_folder_summary_uid_from_index (folder->summary, 1);
+		    uid = camel_folder_summary_uid_from_index (folder->summary, 0);
 
 		if (isum->modseq && ifolder->uidvalidity_on_server) {
 			c(printf("SELECT QRESYNC %ld %ld\n", ifolder->uidvalidity_on_server, isum->modseq));



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