summaryrefslogtreecommitdiff
path: root/camel/camel-folder-thread.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-04-29 16:02:17 +0200
committerMilan Crha <mcrha@redhat.com>2010-04-29 16:02:17 +0200
commitb0b52e49e5a0e99bc3bad401409d118dca1b5f1e (patch)
tree2d8ed01d5afff1c80376449f2bc8e07a1d6f223a /camel/camel-folder-thread.c
parent4fd1ccf4310e4fabb0e63dd29224f26041c8ebc6 (diff)
downloadevolution-data-server-b0b52e49e5a0e99bc3bad401409d118dca1b5f1e.tar.gz
Bug #545505 - Properly free unused message infos periodically
Diffstat (limited to 'camel/camel-folder-thread.c')
-rw-r--r--camel/camel-folder-thread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/camel/camel-folder-thread.c b/camel/camel-folder-thread.c
index 2e7e2aa3a..9b6dd801b 100644
--- a/camel/camel-folder-thread.c
+++ b/camel/camel-folder-thread.c
@@ -607,10 +607,9 @@ camel_folder_thread_messages_new (CamelFolder *folder, GPtrArray *uids, gboolean
thread->node_chunks = e_memchunk_new(32, sizeof(CamelFolderThreadNode));
thread->folder = g_object_ref (folder);
+ camel_folder_summary_prepare_fetch_all (folder->summary, NULL);
fsummary = camel_folder_summary_array (folder->summary);
thread->summary = summary = g_ptr_array_new();
- if (fsummary->len - camel_folder_summary_cache_size (folder->summary) > 50)
- camel_folder_summary_reload_from_db (folder->summary, NULL);
/* prefer given order from the summary order */
if (!uids)