evolution-data-server r9367 - trunk/camel



Author: sragavan
Date: Mon Aug 18 05:02:21 2008
New Revision: 9367
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9367&view=rev

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

	* camel/camel-folder-search.c: Save the db, only if it is a db based
	search.


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

Modified: trunk/camel/camel-folder-search.c
==============================================================================
--- trunk/camel/camel-folder-search.c	(original)
+++ trunk/camel/camel-folder-search.c	Mon Aug 18 05:02:21 2008
@@ -415,9 +415,6 @@
 
 	g_assert(search->folder);
 	
-	/* Sync the db, so that we search the db for changes */
-	camel_folder_summary_save_to_db (search->folder->summary, ex);
-
 	p->ex = ex;
 
 	/* We route body-contains search and uid search through memory and not via db. */
@@ -482,6 +479,9 @@
 		e_sexp_result_free(search->sexp, r);
 
 	} else {
+		/* Sync the db, so that we search the db for changes */
+		camel_folder_summary_save_to_db (search->folder->summary, ex);
+	
 		d(printf ("sexp is : [%s]\n", expr));
 		sql_query = camel_sexp_to_sql (expr);
 		tmp1 = camel_db_sqlize_string(search->folder->full_name);



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