From: David Woodhouse Date: Wed, 30 Jun 2010 10:08:54 +0000 (+0100) Subject: Fix starting UID in QRESYNC SELECT. X-Git-Tag: upstream/3.7.4~2899 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac6557eb872437e4d7b44fc01d9eafcc404b4d8e;p=platform%2Fupstream%2Fevolution-data-server.git Fix starting UID in QRESYNC SELECT. The indices in the folder summary count from zero, not one. --- diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c index 834c682..a2ed753 100644 --- a/camel/providers/imapx/camel-imapx-server.c +++ b/camel/providers/imapx/camel-imapx-server.c @@ -2388,7 +2388,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));