[evolution-data-server/imap-pop-mobile: 7/12] Make Local store work if GetFolderInfo is asked for a specific subtree.



commit 1052fd8119e4cd3d45708c44466a5be799773cb3
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 1004cc8..ec797a2 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]