[evolution-exchange] Mark the message_info dirty when there in a change. Updated in couple of more places.



commit 0b6711c6312ea43d3b54775cbe871bc8ae160652
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Apr 12 12:51:18 2011 +0530

    Mark the message_info dirty when there in a change. Updated in
    couple of more places.

 camel/camel-exchange-folder.c |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/camel/camel-exchange-folder.c b/camel/camel-exchange-folder.c
index f849a4c..1ceab1e 100644
--- a/camel/camel-exchange-folder.c
+++ b/camel/camel-exchange-folder.c
@@ -1025,6 +1025,7 @@ camel_exchange_folder_update_message_flags_ex (CamelExchangeFolder *exch,
 	if ((info->flags & mask) != (flags & mask)) {
 		info->flags &= ~mask;
 		info->flags |= (flags & mask);
+		info->dirty = 1;
 		camel_folder_summary_touch (folder->summary);
 
 		changes = camel_folder_change_info_new ();
@@ -1058,13 +1059,14 @@ camel_exchange_folder_update_message_tag (CamelExchangeFolder *exch,
 	if (!info)
 		return;
 
-	camel_tag_set (&info->user_tags, name, value);
-
-	camel_folder_summary_touch (folder->summary);
-	changes = camel_folder_change_info_new ();
-	camel_folder_change_info_change_uid (changes, uid);
-	camel_folder_changed (CAMEL_FOLDER (exch), changes);
-	camel_folder_change_info_free (changes);
+	if (camel_tag_set (&info->user_tags, name, value)) {
+		info->dirty = 1;
+		camel_folder_summary_touch (folder->summary);
+		changes = camel_folder_change_info_new ();
+		camel_folder_change_info_change_uid (changes, uid);
+		camel_folder_changed (CAMEL_FOLDER (exch), changes);
+		camel_folder_change_info_free (changes);
+	}
 }
 
 /**



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