evolution-data-server r9333 - trunk/camel



Author: sragavan
Date: Tue Aug 12 17:00:12 2008
New Revision: 9333
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9333&view=rev

Log:
2008-08-12  Srinivasa Ragavan  <sragavan novell com>

	* camel/camel-vtrash-folder.c: Make vtrash folders almost same as vee
	folder.


Modified:
   trunk/camel/ChangeLog
   trunk/camel/camel-vtrash-folder.c

Modified: trunk/camel/camel-vtrash-folder.c
==============================================================================
--- trunk/camel/camel-vtrash-folder.c	(original)
+++ trunk/camel/camel-vtrash-folder.c	Tue Aug 12 17:00:12 2008
@@ -516,8 +516,13 @@
 	
 	CAMEL_VEE_FOLDER_LOCK(vf, summary_lock);
 
-	if (((CamelVTrashFolder *)vf)->bit == CAMEL_MESSAGE_DELETED)
+	if (((CamelVTrashFolder *)vf)->bit == CAMEL_MESSAGE_DELETED) {
 		infos = camel_db_get_folder_deleted_uids (sub->cdb, sub->full_name, NULL);
+		if (infos) {
+			((CamelFolder *)vf)->summary->saved_count += infos->len;
+			((CamelFolder *)vf)->summary->deleted_count += infos->len;
+		}
+	}
 	else if (((CamelVTrashFolder *)vf)->bit == CAMEL_MESSAGE_JUNK)
 		infos = camel_db_get_folder_junk_uids (sub->cdb, sub->full_name, NULL);
 
@@ -640,9 +645,9 @@
 	/* folder_class->search_by_expression = vtrash_search_by_expression; */
 	/* folder_class->search_by_uids = vtrash_search_by_uids; */
 
-	((CamelVeeFolderClass *)klass)->add_folder = vtrash_add_folder;
-	((CamelVeeFolderClass *)klass)->remove_folder = vtrash_remove_folder;
-	((CamelVeeFolderClass *)klass)->rebuild_folder = vtrash_rebuild_folder;
+//	((CamelVeeFolderClass *)klass)->add_folder = vtrash_add_folder;
+//	((CamelVeeFolderClass *)klass)->remove_folder = vtrash_remove_folder;
+//	((CamelVeeFolderClass *)klass)->rebuild_folder = vtrash_rebuild_folder;
 
-	((CamelVeeFolderClass *)klass)->folder_changed = vtrash_folder_changed;
+//	((CamelVeeFolderClass *)klass)->folder_changed = vtrash_folder_changed;
 }



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