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));
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);