]> git.notmuchmail.org Git - notmuch/commit
lib: add thread subqueries.
authorDavid Bremner <david@tethera.net>
Tue, 26 Dec 2017 01:03:05 +0000 (21:03 -0400)
committerDavid Bremner <david@tethera.net>
Mon, 7 May 2018 11:42:53 +0000 (08:42 -0300)
commit5ad39ebf75eb85263e4b64f21e07ec02194f9573
treecd888e186b3d84c8819b94d891ff8c10d83d0498
parent3a747e714c3e99a725619d09d832b9ac683733fe
lib: add thread subqueries.

This change allows queries of the form

 thread:{from:me} and thread:{from:jian} and not thread:{from:dave}

This is still somewhat brute-force, but it's a big improvement over
both the shell script solution and the previous proposal [1], because it
does not build the whole thread structure just generate a
query. A further potential optimization is to replace the calls to
notmuch with more specialized Xapian code; in particular it's not
likely that reading all of the message metadata is a win here.

[1]: id:20170820213240.20526-1-david@tethera.net
lib/Makefile.local
lib/database.cc
lib/thread-fp.cc [new file with mode: 0644]
lib/thread-fp.h [new file with mode: 0644]
test/T585-thread-subquery.sh [new file with mode: 0755]