diff src/lib-storage/mail-thread.h @ 8146:70b53e9b232e HEAD

Rewrote thread indexing code. It's a lot simpler and takes less disk space. We no longer try to keep a hash table and the entire thread tree stored on disk. Instead we keep a simple Message-ID string (actually just "uid, ref#" pointer) -> unique index number mapping on disk, read it to memory and use it to build the thread tree. After the initial build the thread tree is still updated incrementally.
author Timo Sirainen <tss@iki.fi>
date Mon, 01 Sep 2008 15:17:00 +0300
parents d987e018483b
children 20e6fa42d081
line wrap: on
line diff
--- a/src/lib-storage/mail-thread.h	Mon Sep 01 15:11:54 2008 +0300
+++ b/src/lib-storage/mail-thread.h	Mon Sep 01 15:17:00 2008 +0300
@@ -26,10 +26,8 @@
    unknown. */
 bool mail_thread_type_parse(const char *str, enum mail_thread_type *type_r);
 
-/* Build thread from given search arguments. If reset=TRUE, build a new thread
-   tree to memory even if thread index exists. args=NULL searches everything. */
-int mail_thread_init(struct mailbox *box, bool reset,
-		     struct mail_search_args *args,
+/* Build thread from given search arguments. args=NULL searches everything. */
+int mail_thread_init(struct mailbox *box, struct mail_search_args *args,
 		     struct mail_thread_context **ctx_r);
 void mail_thread_deinit(struct mail_thread_context **ctx);