evolution-data-server r9905 - trunk/camel
- From: sragavan svn gnome org
 
- To: svn-commits-list gnome org
 
- Subject: evolution-data-server r9905 - trunk/camel
 
- Date: Mon, 12 Jan 2009 03:31:41 +0000 (UTC)
 
Author: sragavan
Date: Mon Jan 12 03:31:41 2009
New Revision: 9905
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9905&view=rev
Log:
2009-01-12  Srinivasa Ragavan  <sragavan novell com>
	* camel-vee-folder.c: (summary_header_to_db): Sync using counting
	manually than the old approach
Modified:
   trunk/camel/ChangeLog
   trunk/camel/camel-vee-folder.c
Modified: trunk/camel/camel-vee-folder.c
==============================================================================
--- trunk/camel/camel-vee-folder.c	(original)
+++ trunk/camel/camel-vee-folder.c	Mon Jan 12 03:31:41 2009
@@ -515,6 +515,7 @@
 	CamelFIRecord * record = g_new0 (CamelFIRecord, 1);
 	CamelDB *db;
 	char *table_name;
+	guint32 visible, unread, deleted, junked, junked_not_deleted;
 
 	/* We do this during write, so lets use write handle, though we gonna read */
 	db = s->folder->parent_store->cdb_w;
@@ -529,7 +530,14 @@
 	record->time = s->time;
 
 	record->saved_count = s->uids->len;
-	if (!(((CamelVeeSummary *) s)->force_counts) && !g_getenv("FORCE_VFOLDER_COUNT")) {
+	camel_object_get(s->folder, NULL,
+				 CAMEL_FOLDER_DELETED, &deleted,
+				 CAMEL_FOLDER_VISIBLE, &visible,
+				 CAMEL_FOLDER_JUNKED, &junked,
+				 CAMEL_FOLDER_JUNKED_NOT_DELETED, &junked_not_deleted,
+				 CAMEL_FOLDER_UNREAD, &unread, NULL);
+	if (1) { /* We always would do this. Just refactor the code again. */ 
+		//!(((CamelVeeSummary *) s)->force_counts) && !g_getenv("FORCE_VFOLDER_COUNT")) {
 		/* We should be in sync always. so use the count. Don't search.*/
 		record->junk_count = s->junk_count;
 		record->deleted_count = s->deleted_count;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]