** Fix for bug #420462
authorSrinivasa Ragavan <sragavan@src.gnome.org>
Mon, 13 Aug 2007 05:13:26 +0000 (05:13 +0000)
committerSrinivasa Ragavan <sragavan@src.gnome.org>
Mon, 13 Aug 2007 05:13:26 +0000 (05:13 +0000)
svn path=/trunk/; revision=7941

camel/ChangeLog
camel/camel-store.c
camel/providers/imap/ChangeLog
camel/providers/imap/camel-imap-store.c

index 4946f33..292384b 100644 (file)
@@ -1,3 +1,10 @@
+2007-08-13  Srinivasa Ragavan  <sragavan@novell.com>
+
+       ** Fix for bug #420462
+
+       * camel-store.c: (camel_folder_info_build): If the FolderInfo doesn't
+       have a child, unset the NO_CHILDREN flag.
+
 2007-08-12  Rob Bradford  <rob@openedhand.com>
 
        * camel-text-index.c: (camel_text_index_new):
index cb04452..b69134d 100644 (file)
@@ -991,6 +991,10 @@ camel_folder_info_build (GPtrArray *folders, const char *namespace,
        tail = top;
        for (i = 0; i < folders->len; i++) {
                fi = folders->pdata[i];
+
+               if (fi->child)
+                       fi->flags &= ~CAMEL_FOLDER_NOCHILDREN;
+
                if (fi->parent || fi == top)
                        continue;
                if (tail == NULL) {
index 96863cc..50dcf67 100644 (file)
@@ -1,3 +1,11 @@
+2007-08-13  Srinivasa Ragavan  <sragavan@novell.com>
+
+       ** Fix for bug #420462
+
+       * camel-imap-store.c: (get_folder_info_offline): Create all folders
+       with NO_CHILDREN flag and when filling FolderInfos depending on child
+       status uncheck it.
+
 2007-08-09  Sankar P  <psankar@novell.com>
 
        * camel-imap-folder.c: (parse_fetch_response):
index 3d6b199..2f26156 100644 (file)
@@ -2853,6 +2853,8 @@ get_folder_info_offline (CamelStore *store, const char *top,
                        } else {
                                fill_fi((CamelStore *)imap_store, fi, 0);
                        }
+                       if (!fi->child)
+                               fi->flags |= CAMEL_FOLDER_NOCHILDREN;
                        g_ptr_array_add (folders, fi);
                }
                camel_store_summary_info_free((CamelStoreSummary *)imap_store->summary, si);