unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Sean Whitton <spwhitton@spwhitton.name>
To: notmuch@notmuchmail.org
Subject: Parenthesised query breaks query it is embedded in
Date: Wed, 23 Feb 2022 08:20:13 -0700	[thread overview]
Message-ID: <87y221txsi.fsf@athena.silentflame.com> (raw)

Hello,

I have this subquery:

    subject:("Cron <dak@" and "sudo -u dak-unpriv /srv/")

as one of many queries in a long one like this: (q1) or (q2) or (q3) ..

Including that particular subquery breaks the whole thing: results which
should be included by other disjuncts are not included.  I suspect but
have not confirmed that each disjunct after the problematic one stops
matching anything.

The query works fine on its own.  And I can work around the problem by
replacing it with

    subject:"Cron <dak@" and subject:"sudo -u dak-unpriv /srv/"

Seems like a parsing bug.  Thanks.

-- 
Sean Whitton

             reply	other threads:[~2022-02-23 15:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-23 15:20 Sean Whitton [this message]
2022-02-25  2:41 ` fix for parsing bracketed expression David Bremner
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=87y221txsi.fsf@athena.silentflame.com \
    --to=spwhitton@spwhitton.name \
    --cc=notmuch@notmuchmail.org \
    /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).