evolution-data-server r9406 - trunk/camel



Author: sragavan
Date: Wed Aug 20 17:04:08 2008
New Revision: 9406
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9406&view=rev

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

	* camel/camel-vee-folder.c: Add function to save headers to db.
	* camel/camel-vee-folder.h:


Modified:
   trunk/camel/ChangeLog
   trunk/camel/camel-vee-folder.c
   trunk/camel/camel-vee-folder.h

Modified: trunk/camel/camel-vee-folder.c
==============================================================================
--- trunk/camel/camel-vee-folder.c	(original)
+++ trunk/camel/camel-vee-folder.c	Wed Aug 20 17:04:08 2008
@@ -2121,6 +2121,17 @@
 	camel_object_unref((CamelObject *)sub);
 }
 
+void
+camel_vee_folder_sync_headers (CamelVeeFolder *vf, CamelException *ex)
+{
+	CamelFIRecord * record;
+
+	/* Save the counts to DB */
+	record = summary_header_to_db (((CamelFolder *)vf)->summary, ex);
+	camel_db_write_folder_info_record (((CamelFolder *) vf)->parent_store->cdb, record, ex);
+	g_free (record);
+}
+
 static void
 camel_vee_folder_finalise (CamelObject *obj)
 {

Modified: trunk/camel/camel-vee-folder.h
==============================================================================
--- trunk/camel/camel-vee-folder.h	(original)
+++ trunk/camel/camel-vee-folder.h	Wed Aug 20 17:04:08 2008
@@ -87,6 +87,7 @@
 void	     camel_vee_folder_set_expression	(CamelVeeFolder *vf, const char *expr);
 
 void	     camel_vee_folder_hash_folder	(CamelFolder *folder, char buffer[8]);
+void	     camel_vee_folder_sync_headers (CamelVeeFolder *vf, CamelException *ex);
 
 G_END_DECLS
 



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