unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: Sean Whitton <spwhitton@spwhitton.name>, notmuch@notmuchmail.org
Subject: fix for parsing bracketed expression
Date: Thu, 24 Feb 2022 22:41:01 -0400	[thread overview]
Message-ID: <20220225024103.1026629-1-david@tethera.net> (raw)
In-Reply-To: <87y221txsi.fsf@athena.silentflame.com>

This is not a complete fix, which is hard because of the way we
implement regular expressions. Sean's original examples still won't
work, but hopefully the tests in the second patch show how to make
something similar work. This is probably a good time to mention that
this kind of thing is easier in the sexp query parser.

d


  reply	other threads:[~2022-02-25  2:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-23 15:20 Parenthesised query breaks query it is embedded in Sean Whitton
2022-02-25  2:41 ` David Bremner [this message]
2022-02-25  2:41   ` [PATCH 1/2] test: known broken tests for bracketed terms in subject David Bremner
2022-03-19 10:38     ` David Bremner
2022-03-20 16:29       ` Sean Whitton
2022-02-25  2:41   ` [PATCH 2/2] lib: do not phrase parse prefixed bracketed subexpressions David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220225024103.1026629-1-david@tethera.net \
    --to=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=spwhitton@spwhitton.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).