]> git.notmuchmail.org Git - notmuch/commit
Add an initial implementation of a notmuch_thread_t object.
authorCarl Worth <cworth@cworth.org>
Mon, 26 Oct 2009 06:12:20 +0000 (23:12 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 26 Oct 2009 06:12:20 +0000 (23:12 -0700)
commit1ba3d46fab12d616b2085f5794543444cc4bc750
treea7a391337a5a63c66e5598e419e3b030e84babb3
parentcd467cafb5eee180661ebc14e0fb71426e67c855
Add an initial implementation of a notmuch_thread_t object.

We've now got a new notmuch_query_search_threads and a
notmuch_threads_result_t iterator. The thread object itself
doesn't do much yet, (just allows one to get the thread_id),
but that's at least enough to see that "notmuch search" is
actually doing something now, (since it has been converted
to print thread IDs instead of message IDs).

And maybe that's all we need. Getting the messages belonging
to a thread is as simple as a notmuch_query_search_messages
with a string of "thread:<thread-id>".

Though it would be convenient to add notmuch_thread_get_messages
which could use the existing notmuch_message_results_t iterator.

Now we just need an implementation of "notmuch show" and we'll
have something somewhat usable.
Makefile
notmuch-private.h
notmuch.c
notmuch.h
query.cc
thread.cc [new file with mode: 0644]