[evolution-data-server] Initialize the uidset before sync user flags.



commit bbdc24570e36d63f699393823ef95b364b39173a
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Wed Dec 2 15:23:49 2009 +0530

    Initialize the uidset before sync user flags.

 camel/providers/imapx/camel-imapx-server.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 81d1652..74f1845 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2195,6 +2195,7 @@ imapx_job_sync_changes_start(CamelIMAPXServer *is, CamelIMAPXJob *job)
 			for (j=0 ; j<user_set->len; j++) {
 				struct _imapx_flag_change *c = &g_array_index(user_set, struct _imapx_flag_change, j);
 
+				imapx_uidset_init(&ss, 0, 100);
 				for (i=0 ; i < c->infos->len; i++) {
 					CamelIMAPXMessageInfo *info = c->infos->pdata[i];
 
@@ -2204,8 +2205,9 @@ imapx_job_sync_changes_start(CamelIMAPXServer *is, CamelIMAPXJob *job)
 						ic->job = job;
 						ic->pri = job->pri;
 					}
-					if (imapx_uidset_add(&ss, ic, camel_message_info_uid(info))
-					    || (i==c->infos->len-1 && imapx_uidset_done(&ss, ic))) {
+
+					if (imapx_uidset_add(&ss, ic, camel_message_info_uid (info))
+					    || (i == c->infos->len-1 && imapx_uidset_done (&ss, ic))) {
 						job->commands++;
 						camel_imapx_command_add(ic, " %tFLAGS.SILENT (%t)", on?"+":"-", c->name);
 						imapx_command_queue(is, ic);



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