[evolution-patches] 71812, folders stored too often




comments in bug

Index: camel/providers/local/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/local/ChangeLog,v
retrieving revision 1.1
diff -u -p -r1.1 ChangeLog
--- camel/providers/local/ChangeLog	1 Feb 2005 07:40:52 -0000	1.1
+++ camel/providers/local/ChangeLog	23 Feb 2005 06:48:26 -0000
@@ -1,3 +1,10 @@
+2005-02-23  Not Zed  <NotZed Ximian com>
+
+	** See bug #71812
+
+	* camel-mbox-summary.c (camel_mbox_summary_sync_mbox): clear the
+	working flags after we've successfully performed a full sync, they
+	are no longer needed.
 
 2005-02-01  Not Zed  <NotZed Ximian com>
 
Index: camel/providers/local/camel-mbox-summary.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/local/camel-mbox-summary.c,v
retrieving revision 1.50
diff -u -p -r1.50 camel-mbox-summary.c
--- camel/providers/local/camel-mbox-summary.c	12 Nov 2004 05:53:12 -0000	1.50
+++ camel/providers/local/camel-mbox-summary.c	23 Feb 2005 06:48:26 -0000
@@ -1031,6 +1031,20 @@ camel_mbox_summary_sync_mbox(CamelMboxSu
 #endif
 
 	camel_object_unref((CamelObject *)mp);
+
+	/* clear working flags */
+	for (i=0; i<count; i++) {
+		info = (CamelMboxMessageInfo *)camel_folder_summary_index(s, i);
+		if (info) {
+			if (info->info.info.flags & (CAMEL_MESSAGE_FOLDER_NOXEV|CAMEL_MESSAGE_FOLDER_FLAGGED|CAMEL_MESSAGE_FOLDER_XEVCHANGE)) {
+				info->info.info.flags &= ~(CAMEL_MESSAGE_FOLDER_NOXEV
+							   |CAMEL_MESSAGE_FOLDER_FLAGGED
+							   |CAMEL_MESSAGE_FOLDER_XEVCHANGE);
+				camel_folder_summary_touch(s);
+			}
+			camel_message_info_free((CamelMessageInfo *)info);
+		}
+	}
 		
 	return 0;
  error:


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