From 1cd329bacb3ac8f68a268af6f41d452146fb4b80 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 29 Mar 2004 20:13:47 +0000 Subject: Removed debugging printfs. 2004-03-29 Jeffrey Stedfast * providers/local/camel-mbox-store.c (get_folder_info): Removed debugging printfs. * providers/local/camel-local-folder.c (camel_local_folder_construct): Since the folder was *just* created, it shouldn't have any subfolders so set the CAMEL_FOLDER_NOCHILDREN flag (altho, ideally, we wouldn't be guessing these flags at all - rather we'd call get_folder_info() or some such). Fixes bug #56010. svn path=/trunk/; revision=25231 --- camel/ChangeLog | 12 ++++++++++++ camel/providers/local/camel-local-folder.c | 1 + camel/providers/local/camel-mbox-store.c | 4 ---- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 1878664afa..fc8167b063 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,15 @@ +2004-03-29 Jeffrey Stedfast + + * providers/local/camel-mbox-store.c (get_folder_info): Removed + debugging printfs. + + * providers/local/camel-local-folder.c + (camel_local_folder_construct): Since the folder was *just* + created, it shouldn't have any subfolders so set the + CAMEL_FOLDER_NOCHILDREN flag (altho, ideally, we wouldn't be + guessing these flags at all - rather we'd call get_folder_info() + or some such). Fixes bug #56010. + 2004-03-29 Radek Doulik * camel-mime-filter-tohtml.c (html_convert): close pre tag in case diff --git a/camel/providers/local/camel-local-folder.c b/camel/providers/local/camel-local-folder.c index b61414074e..bd9d259dce 100644 --- a/camel/providers/local/camel-local-folder.c +++ b/camel/providers/local/camel-local-folder.c @@ -320,6 +320,7 @@ camel_local_folder_construct(CamelLocalFolder *lf, CamelStore *parent_store, con fi->uri = camel_url_to_string (url, 0); fi->unread = camel_folder_get_unread_message_count(folder); camel_folder_info_build_path(fi, '/'); + fi->flags = CAMEL_FOLDER_NOCHILDREN; camel_url_free (url); diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c index e8c47c5672..b9d3a976d1 100644 --- a/camel/providers/local/camel-mbox-store.c +++ b/camel/providers/local/camel-mbox-store.c @@ -767,8 +767,6 @@ get_folder_info(CamelStore *store, const char *top, guint32 flags, CamelExceptio top = top ? top : ""; path = mbox_folder_name_to_path(store, top); - printf ("mbox_get_folder_info for '%s'; path = %s\n", top, path); - if (*top == '\0') { /* requesting root dir scan */ if (stat(path, &st) == -1 || !S_ISDIR(st.st_mode)) { @@ -819,8 +817,6 @@ get_folder_info(CamelStore *store, const char *top, guint32 flags, CamelExceptio fi->total = -1; fi->path = g_strdup_printf("/%s", top); - printf ("fi->uri = %s\n\n", fi->uri); - subdir = g_strdup_printf("%s.sbd", path); if (stat(subdir, &st) == 0) { if (S_ISDIR(st.st_mode)) -- cgit v1.2.3