[evolution-data-server] Flag the message infos once they are synced.



commit 44580593f4fd550676f8542f81fdea10547593af
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Wed Dec 2 16:09:30 2009 +0530

    Flag the message infos once they are synced.

 camel/providers/imapx/camel-imapx-server.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 74f1845..e1cf5f2 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2132,12 +2132,15 @@ imapx_job_sync_changes_done(CamelIMAPXServer *is, CamelIMAPXCommand *ic)
 				CamelIMAPXMessageInfo *info = camel_folder_summary_peek_info (job->folder->summary, 
 										job->u.sync_changes.changed_uids->pdata[i]);
 
-				if (info)
-					info->server_flags = ((CamelMessageInfoBase *)info)->flags & CAMEL_IMAPX_SERVER_FLAGS;
+				info->server_flags = ((CamelMessageInfoBase *)info)->flags & CAMEL_IMAPX_SERVER_FLAGS;
+				info->info.flags &= ~CAMEL_MESSAGE_FOLDER_FLAGGED;
+				info->info.dirty = TRUE;
 
 				/* FIXME: move over user flags too */
 			}
 		}
+
+		camel_folder_summary_touch (job->folder->summary);
 		camel_dlist_remove((CamelDListNode *)job);
 		camel_msgport_reply((CamelMsg *)job);
 	}



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