aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-04-21 14:52:05 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-04-21 14:52:05 +0800
commit0c409d2aaa8281c70277ead2cd0620fc8c5834cf (patch)
treef1bb5bf4cb4b388d021c0147129b044f903b462e
parent618188fa1ac896a6d629c1e64e12f49c5ff65258 (diff)
downloadgsoc2013-evolution-0c409d2aaa8281c70277ead2cd0620fc8c5834cf.tar.gz
gsoc2013-evolution-0c409d2aaa8281c70277ead2cd0620fc8c5834cf.tar.zst
gsoc2013-evolution-0c409d2aaa8281c70277ead2cd0620fc8c5834cf.zip
set the meta data file on nntp folders.
2004-04-21 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): set the meta data file on nntp folders. svn path=/trunk/; revision=25553
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/providers/nntp/camel-nntp-folder.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 421bf36c1c..6e9a5e2128 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2004-04-21 Not Zed <NotZed@Ximian.com>
+ * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): set
+ the meta data file on nntp folders.
+
* camel-disco-folder.c (disco_refresh_info_online): implement
dummy virtual method.
diff --git a/camel/providers/nntp/camel-nntp-folder.c b/camel/providers/nntp/camel-nntp-folder.c
index 4ef92ea9b5..9fc236e215 100644
--- a/camel/providers/nntp/camel-nntp-folder.c
+++ b/camel/providers/nntp/camel-nntp-folder.c
@@ -631,6 +631,11 @@ camel_nntp_folder_new (CamelStore *parent, const char *folder_name, CamelExcepti
nntp_folder->storage_path = g_build_filename (root, folder->full_name, NULL);
g_free (root);
+ root = g_strdup_printf ("%s.cmeta", nntp_folder->storage_path);
+ camel_object_set(nntp_folder, NULL, CAMEL_OBJECT_STATE_FILE, root, NULL);
+ camel_object_state_read(nntp_folder);
+ g_free(root);
+
folder->summary = (CamelFolderSummary *) camel_nntp_summary_new (nntp_folder);
camel_folder_summary_load (folder->summary);