[evolution-data-server] Bug 611879 - IMAPX : 'copy folder content locally for offline' doesn't get remembered



commit cf45a8bf52fe9e4737aec23d30d2ef4be3b0cc7f
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Thu Mar 11 17:13:47 2010 +0530

    Bug 611879 - IMAPX : 'copy folder content locally for offline' doesn't get remembered

 camel/providers/imapx/camel-imapx-folder.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-folder.c b/camel/providers/imapx/camel-imapx-folder.c
index ad24664..00fc6f3 100644
--- a/camel/providers/imapx/camel-imapx-folder.c
+++ b/camel/providers/imapx/camel-imapx-folder.c
@@ -62,7 +62,7 @@ camel_imapx_folder_new(CamelStore *store, const gchar *folder_dir, const gchar *
 	CamelFolder *folder;
 	CamelIMAPXFolder *ifolder;
 	const gchar *short_name;
-	gchar *summary_file;
+	gchar *summary_file, *state_file;
 	CamelIMAPXStore *istore;
 
 	d(printf("opening imap folder '%s'\n", folder_dir));
@@ -96,6 +96,11 @@ camel_imapx_folder_new(CamelStore *store, const gchar *folder_dir, const gchar *
 		return NULL;
 	}
 
+	state_file = g_strdup_printf ("%s/cmeta", folder_dir);
+	camel_object_set(folder, NULL, CAMEL_OBJECT_STATE_FILE, state_file, NULL);
+	g_free(state_file);
+	camel_object_state_read(folder);
+
 	ifolder->search = camel_folder_search_new ();
 	ifolder->search_lock = g_mutex_new ();
 	ifolder->ignore_recent = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) g_free, NULL); 



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