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
This commit is contained in:

committed by
Jeffrey Stedfast

parent
b337ececee
commit
561b83c1a1
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user