From 387828c4356416278fdac8446c904fe4c5ad283d Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 17 Nov 2009 17:40:19 -0800 Subject: get_in_reply_to: Implement via the database, not by opening mail file. This reduces our reliance on open message_file objects, (so is a step toward fixing the "too many open files" bug), but more importantly, it means we don't load a self-referencing in-reply-to header, (since we weed those out before adding any replyto terms to the database). --- lib/thread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/thread.cc') diff --git a/lib/thread.cc b/lib/thread.cc index 4411d64d..e38a5b2e 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -155,7 +155,7 @@ _resolve_thread_relationships (unused (notmuch_thread_t *thread)) while ((node = *prev)) { message = node->message; in_reply_to = _notmuch_message_get_in_reply_to (message); - if (in_reply_to && + if (in_reply_to && strlen (in_reply_to) && g_hash_table_lookup_extended (thread->message_hash, in_reply_to, NULL, (void **) &parent)) -- cgit v1.2.3