aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-09-06 00:15:12 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-09-06 00:15:12 +0800
commit4e4eb45bf69d539996b298a13bf650c5ebea7f16 (patch)
tree359e98c1b0f050769df800a8e7456db192c03310 /camel/camel-folder.c
parent0fe7101224105602a18e63eb83af4611648c9d91 (diff)
downloadgsoc2013-evolution-4e4eb45bf69d539996b298a13bf650c5ebea7f16.tar
gsoc2013-evolution-4e4eb45bf69d539996b298a13bf650c5ebea7f16.tar.gz
gsoc2013-evolution-4e4eb45bf69d539996b298a13bf650c5ebea7f16.tar.bz2
gsoc2013-evolution-4e4eb45bf69d539996b298a13bf650c5ebea7f16.tar.lz
gsoc2013-evolution-4e4eb45bf69d539996b298a13bf650c5ebea7f16.tar.xz
gsoc2013-evolution-4e4eb45bf69d539996b298a13bf650c5ebea7f16.tar.zst
gsoc2013-evolution-4e4eb45bf69d539996b298a13bf650c5ebea7f16.zip
use folder summary instead of opening all messages.
1999-09-05 bertrand <Bertrand.Guiheneuf@aful.org> * tests/ui-tests/store_listing.c (show_folder_messages): use folder summary instead of opening all messages. * camel/providers/MH/camel-mh-folder.c (_create_summary): basic and highly non-efficient summary implementation. Should be seen as a proof of concept only. subfolder summary still has to be implemented. * camel/providers/maildir/camel-maildir-folder.c (_init_with_store): hasn't summary for the moment. * camel/providers/maildir/camel-maildir-folder.c cosmetic changes. svn path=/trunk/; revision=1178
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;