aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index 49c886dc98..1cd3b41dc6 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -167,6 +167,10 @@ _init_with_store (CamelFolder *folder, CamelStore *parent_store)
if (folder->parent_store) gtk_object_unref (GTK_OBJECT (folder->parent_store));
folder->parent_store = parent_store;
if (parent_store) gtk_object_ref (GTK_OBJECT (parent_store));
+ folder->open_mode = FOLDER_OPEN_UNKNOWN;
+ folder->open_state = FOLDER_CLOSE;
+ folder->name = NULL;
+ folder->full_name = NULL;
}
@@ -187,6 +191,13 @@ _open (CamelFolder *folder, CamelFolderOpenMode mode)
}
+void camel_folder_open (CamelFolder *folder, CamelFolderOpenMode mode)
+{
+ CF_CLASS(folder)->open (folder, mode);
+}
+
+
+
/**
* _close:Close a folder.
* @folder:
@@ -972,7 +983,7 @@ camel_folder_has_summary_capability (CamelFolder *folder)
}
-const CamelFolderSummary *
+CamelFolderSummary *
camel_folder_get_summary (CamelFolder *folder)
{
return folder->summary;