diff options
author | Carl Worth <cworth@cworth.org> | 2009-11-17 17:40:19 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-17 17:40:19 -0800 |
commit | 387828c4356416278fdac8446c904fe4c5ad283d (patch) | |
tree | 1cfa032df2c1a4f65d4a8046cea1e132b7cc8def /lib/thread.cc | |
parent | e8c9c3e6a534fc6c2919c2c1de63cea7250eb488 (diff) |
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).
Diffstat (limited to 'lib/thread.cc')
-rw-r--r-- | lib/thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |