From 561b83c1a1128305b27026cf284320c333966f4a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 17 Nov 2003 22:06:51 +0000 Subject: Fixed an exception to give a more meaningful description. 2003-11-17 Jeffrey Stedfast * providers/local/camel-mbox-store.c (create_folder): Fixed an exception to give a more meaningful description. (get_folder_info): We always want to scan at least one level deep. svn path=/trunk/; revision=23406 --- camel/ChangeLog | 1 + camel/providers/local/camel-mbox-store.c | 22 ++++++++++------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 511d12c59c..0cbeb8c483 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -2,6 +2,7 @@ * providers/local/camel-mbox-store.c (create_folder): Fixed an exception to give a more meaningful description. + (get_folder_info): We always want to scan at least one level deep. 2003-11-14 Jeffrey Stedfast diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c index a74f44199d..560ac93482 100644 --- a/camel/providers/local/camel-mbox-store.c +++ b/camel/providers/local/camel-mbox-store.c @@ -708,18 +708,16 @@ get_folder_info (CamelStore *store, const char *top, guint32 flags, CamelExcepti fi->unread_message_count = unread; fi->path = g_strdup_printf ("/%s", top); - if ((flags & CAMEL_STORE_FOLDER_INFO_RECURSIVE) != 0) { - subdir = g_strdup_printf ("%s.sbd", path); - if (stat (subdir, &st) == 0 && S_ISDIR (st.st_mode)) - fi->child = scan_dir (store, visited, fi, subdir, top, flags, ex); - - if (fi->child) - fi->flags |= CAMEL_FOLDER_CHILDREN; - else - fi->flags |= CAMEL_FOLDER_NOINFERIORS; - - g_free (subdir); - } + subdir = g_strdup_printf ("%s.sbd", path); + if (stat (subdir, &st) == 0 && S_ISDIR (st.st_mode)) + fi->child = scan_dir (store, visited, fi, subdir, top, flags, ex); + + if (fi->child) + fi->flags |= CAMEL_FOLDER_CHILDREN; + else + fi->flags |= CAMEL_FOLDER_NOINFERIORS; + + g_free (subdir); g_hash_table_foreach (visited, inode_free, NULL); g_hash_table_destroy (visited); -- cgit v1.2.3