evolution-data-server r9190 - trunk/camel



Author: sragavan
Date: Fri Jul 25 05:35:47 2008
New Revision: 9190
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9190&view=rev

Log:
2008-07-25  Srinivasa Ragavan  <sragavan novell com>

	** Fix for bug #543569

	* camel/camel-store.c: Recreate cache, if it was blown.


Modified:
   trunk/camel/ChangeLog
   trunk/camel/camel-store.c

Modified: trunk/camel/camel-store.c
==============================================================================
--- trunk/camel/camel-store.c	(original)
+++ trunk/camel/camel-store.c	Fri Jul 25 05:35:47 2008
@@ -222,6 +222,11 @@
 		g_free (store_path);
 	}
 
+	if (!g_file_test(service->url->path, G_FILE_TEST_EXISTS)) {
+		/* Cache might be blown. Recreate. */
+		g_mkdir_with_parents (service->url->path, S_IRWXU);
+	}
+
 	store->cdb = camel_db_open (store_db_path, ex);
 	printf("store_db_path %s\n", store_db_path);
 	if (camel_exception_is_set (ex)) {



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