diff options
-rw-r--r-- | camel/providers/local/camel-maildir-store.c | 9 | ||||
-rw-r--r-- | camel/providers/local/camel-mbox-store.c | 10 |
2 files changed, 3 insertions, 16 deletions
diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c index df17bcd5d9..b0412d3d9a 100644 --- a/camel/providers/local/camel-maildir-store.c +++ b/camel/providers/local/camel-maildir-store.c @@ -255,20 +255,13 @@ fill_fi(CamelStore *store, CamelFolderInfo *fi, guint32 flags) CamelFolderSummary *s; const char *root; - printf("looking up counts from '%s'\n", fi->full_name); - /* This should be fast enough not to have to test for INFO_FAST */ root = camel_local_store_get_toplevel_dir((CamelLocalStore *)store); path = g_strdup_printf("%s/%s.ev-summary", root, fi->full_name); folderpath = g_strdup_printf("%s/%s", root, fi->full_name); s = (CamelFolderSummary *)camel_maildir_summary_new(path, folderpath, NULL); - if (camel_folder_summary_header_load(s) != -1) { + if (camel_folder_summary_header_load(s) != -1) unread = s->unread_count; - printf("loaded summary header unread = %d\n", unread); - } else { - printf("couldn't load summary header?\n"); - } - camel_object_unref(s); g_free(folderpath); g_free(path); diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c index 12be516797..fa7a0af527 100644 --- a/camel/providers/local/camel-mbox-store.c +++ b/camel/providers/local/camel-mbox-store.c @@ -613,21 +613,15 @@ fill_fi(CamelStore *store, CamelFolderInfo *fi, guint32 flags) CamelMboxSummary *mbs; const char *root; - printf("looking up counts from '%s'\n", fi->full_name); - /* This should be fast enough not to have to test for INFO_FAST */ root = camel_local_store_get_toplevel_dir((CamelLocalStore *)store); path = camel_mbox_folder_get_meta_path(root, fi->full_name, ".ev-summary"); folderpath = camel_mbox_folder_get_full_path(root, fi->full_name); mbs = (CamelMboxSummary *)camel_mbox_summary_new(path, folderpath, NULL); - if (camel_folder_summary_header_load((CamelFolderSummary *)mbs) != -1) { + if (camel_folder_summary_header_load((CamelFolderSummary *)mbs) != -1) unread = ((CamelFolderSummary *)mbs)->unread_count; - printf("loaded summary header unread = %d\n", unread); - } else { - printf("couldn't load summary header?\n"); - } - + camel_object_unref(mbs); g_free(folderpath); g_free(path); |