WIP: fixes for implicit operators and subqueries

Subject: WIP: fixes for implicit operators and subqueries

Date: Sat, 31 Aug 2019 22:37:43 -0300

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


This obsoletes the patches discussed at

     id:871rx38q8y.fsf@tethera.net

and

     id:20190821114126.23540-2-david@tethera.net

I think I still have a spelling error in the commit message that Tomi
caught, and I need to update notmuch-search-terms(7). Before I do
that, please have a look at the new tests and see if the expected
behaviour in the tests makes sense.

We still won't have working subqueries for boolean fields,
reasons discussed in

    https://trac.xapian.org/ticket/795
    
field:"(foo bar)" does not currently work for e.g. tag: or id:

There is also the unfortunate aspect that non-regex supporting fields
like "to" support Xapian to:(david tethera), but regex supporting
fields need from:"(david tethera)". It's not obvious how to fix this
without radically changing the regex syntax (e.g. to use distinct
prefixes rather than //), and I think that would annoy more people
than the quirky subquery quoting.

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: