aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/providers/local/camel-mbox-store.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c
index d07176cc0d..8ef8168bf4 100644
--- a/camel/providers/local/camel-mbox-store.c
+++ b/camel/providers/local/camel-mbox-store.c
@@ -711,6 +711,12 @@ get_folder_info (CamelStore *store, const char *top, guint32 flags, CamelExcepti
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);
}