]> rtime.felk.cvut.cz Git - notmuch.git/commit
Store thread ids for messages that we haven't seen yet
authorJames Westby <jw+debian@jameswestby.net>
Sat, 13 Mar 2010 21:27:57 +0000 (16:27 -0500)
committerCarl Worth <cworth@cworth.org>
Mon, 12 Apr 2010 21:11:57 +0000 (14:11 -0700)
commit40ea73cf052ad3f055174583d336a13682b074bd
treeb5c8214f63e17eadeb4a3299bb6144b06172d775
parent4a9b41f1da63039a17a62a49dd1649bcf1ca5a99
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 <cworth@cworth.org>: Split this portion of the
commit from the earlier-applied portion adding test cases.
lib/database.cc