aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
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 /camel/providers
parentb337ececee63f7b7f76c8f783b7ee5d33f028467 (diff)
downloadgsoc2013-evolution-561b83c1a1128305b27026cf284320c333966f4a.tar
gsoc2013-evolution-561b83c1a1128305b27026cf284320c333966f4a.tar.gz
gsoc2013-evolution-561b83c1a1128305b27026cf284320c333966f4a.tar.bz2
gsoc2013-evolution-561b83c1a1128305b27026cf284320c333966f4a.tar.lz
gsoc2013-evolution-561b83c1a1128305b27026cf284320c333966f4a.tar.xz
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
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/local/camel-mbox-store.c22
1 files changed, 10 insertions, 12 deletions
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);