On Wed, Jun 13, 2012 at 01:27:39PM -0400, Chris Mason wrote:
This patch is about 10 minutes old, treat it gently. It needs a
Thanks! I love patches :-)
conditional to switch between whole-thread matching and strict message matching, but I'll let people that know mutt internals better suggest how to do that.
It seems good idea to distinguish between whole-threads and messages for notmuch queries. I have added (based on your patch) support for a new keyword type=<threads|messages> for notmuch URLs.
It means that you can in your .muttrc use something like:
virtual-mailboxes \ "INBOX" "notmuch://?type=threads&query=tag:inbox and NOT tag:archive" ^^^^^^^^^^^^ to get whole-threads for the query.
It also works with <vfolder-from-query> command (default <Esc>X key), where you can in mutt dialog type:
Query: something &type=threads
(so append "&type=.." to the query).
Note that nm_check_database() still reads messages only. I'm going to fix it on Monday.
Karel