New and improved approach to fetching an entire folder summary that should
authorJeffrey Stedfast <fejj@helixcode.com>
Thu, 13 Jul 2000 08:56:52 +0000 (08:56 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Thu, 13 Jul 2000 08:56:52 +0000 (08:56 +0000)
2000-07-13  Jeffrey Stedfast  <fejj@helixcode.com>

* providers/imap/camel-imap-folder.c (imap_get_summary): New
and improved approach to fetching an entire folder summary
that should be much much faster than the old way as it gets
the entire folder summary in 1 shot rather than requesting
message by message. As with the last update, this version
also only fetches the minimum number of header fields.
(imap_get_summary): Oops, forgot to free the temp
GPtrArray *headers

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

index d2b9d25..f420de3 100644 (file)
@@ -6,6 +6,8 @@
        the entire folder summary in 1 shot rather than requesting
        message by message. As with the last update, this version
        also only fetches the minimum number of header fields.
+       (imap_get_summary): Oops, forgot to free the temp 
+       GPtrArray *headers
 
 2000-07-13  Jeffrey Stedfast  <fejj@helixcode.com>
 
index 30e44b0..e19a172 100644 (file)
@@ -1180,6 +1180,8 @@ imap_get_summary (CamelFolder *folder, CamelException *ex)
                g_ptr_array_add (summary, info);
        }
 
+       g_ptr_array_free (headers, TRUE);
+
        imap_folder->summary = summary;
        
        return summary;