]> git.notmuchmail.org Git - notmuch/commit
lib: add thread subqueries.
authorDavid Bremner <david@tethera.net>
Sun, 20 Aug 2017 21:32:40 +0000 (18:32 -0300)
committerDavid Bremner <david@tethera.net>
Tue, 26 Dec 2017 00:40:28 +0000 (20:40 -0400)
commit4f5bbaf7e2cecfe5022ba4b28915cccfb7ccb12d
treefb484349726d2c6ff0575266bedd5d753d3a1c11
parent68e753a21f47b0e37bcf26a3efcdf7842b6374cf
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]