From: James Westby Date: Sat, 13 Mar 2010 21:27:57 +0000 (-0500) Subject: Store thread ids for messages that we haven't seen yet X-Git-Tag: 0.2~74 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=40ea73cf052ad3f055174583d336a13682b074bd;hp=40ea73cf052ad3f055174583d336a13682b074bd;ds=sidebyside Store thread ids for messages that we haven't seen yet This allows us to thread messages even when we receive them out of order, or never receive the root. The thread ids for messages that aren't present but are referred to are stored as metadata in the database and then retrieved if we ever get that message. When determining the thread id for a message we also check for this metadata so that we can thread descendants of a message together before we receive it. Edited by Carl Worth : Split this portion of the commit from the earlier-applied portion adding test cases. ---