[evolution-data-server] create the trash folder
- From: Chenthill Palanisamy <pchen src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server] create the trash folder
- Date: Mon, 1 Feb 2010 16:48:16 +0000 (UTC)
commit dd3aa6354c0ad0872568116b88e620cd265d17c8
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Mon Feb 1 21:23:05 2010 +0530
create the trash folder
camel/providers/imapx/camel-imapx-store.c | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-store.c b/camel/providers/imapx/camel-imapx-store.c
index 7ded0bc..6ce1368 100644
--- a/camel/providers/imapx/camel-imapx-store.c
+++ b/camel/providers/imapx/camel-imapx-store.c
@@ -205,9 +205,19 @@ imap_disconnect (CamelService *service, gboolean clean, CamelException *ex)
static CamelFolder *
imap_get_trash (CamelStore *store, CamelException *ex)
-{
- /* no-op */
- return NULL;
+{
+ CamelFolder *folder = CAMEL_STORE_CLASS(parent_class)->get_trash(store, ex);
+
+ if (folder) {
+ gchar *state = g_build_filename(((CamelIMAPXStore *)store)->storage_path, "system", "Trash.cmeta", NULL);
+
+ camel_object_set(folder, NULL, CAMEL_OBJECT_STATE_FILE, state, NULL);
+ g_free(state);
+ /* no defaults? */
+ camel_object_state_read(folder);
+ }
+
+ return folder;
}
static CamelFolder *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]