[evolution-data-server/email-factory-3-4] Make Local store work if GetFolderInfo is asked for a specific subtree.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/email-factory-3-4] Make Local store work if GetFolderInfo is asked for a specific subtree.
- Date: Thu, 12 Jan 2012 14:30:25 +0000 (UTC)
commit 1ccc587e935181a028a632a3e54f55b57183cee4
Author: Srinivasa Ragavan <sragavan gnome org>
Date: Thu Jan 12 19:51:34 2012 +0530
Make Local store work if GetFolderInfo is asked for a specific subtree.
camel/providers/local/camel-mbox-store.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c
index 7d5c2d3..b6a729f 100644
--- a/camel/providers/local/camel-mbox-store.c
+++ b/camel/providers/local/camel-mbox-store.c
@@ -476,8 +476,14 @@ mbox_store_get_folder_info_sync (CamelStore *store,
/* requesting scan of specific folder */
if (g_stat (path, &st) == -1 || !S_ISREG (st.st_mode)) {
- g_free (path);
- return NULL;
+ char *test_if_subdir = g_strdup_printf("%s.sbd", path);
+
+ if (g_stat(test_if_subdir, &st) == -1) {
+ g_free(path);
+ g_free (test_if_subdir);
+ return NULL;
+ }
+ g_free (test_if_subdir);
}
visited = g_hash_table_new (inode_hash, inode_equal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]