aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-11-18 06:06:51 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-11-18 06:06:51 +0800
commit561b83c1a1128305b27026cf284320c333966f4a (patch)
treec4fc37c87b897712398f5c6d8a8930f55f59e923
parentb337ececee63f7b7f76c8f783b7ee5d33f028467 (diff)
downloadgsoc2013-evolution-561b83c1a1128305b27026cf284320c333966f4a.tar.gz
gsoc2013-evolution-561b83c1a1128305b27026cf284320c333966f4a.tar.zst
gsoc2013-evolution-561b83c1a1128305b27026cf284320c333966f4a.zip
Fixed an exception to give a more meaningful description.
2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * 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
-rw-r--r--camel/ChangeLog1
-rw-r--r--camel/providers/local/camel-mbox-store.c22
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 <fejj@ximian.com>
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);