unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Parenthesised query breaks query it is embedded in
@ 2022-02-23 15:20 Sean Whitton
  2022-02-25  2:41 ` fix for parsing bracketed expression David Bremner
  0 siblings, 1 reply; 6+ messages in thread
From: Sean Whitton @ 2022-02-23 15:20 UTC (permalink / raw)
  To: notmuch

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-03-20 16:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-23 15:20 Parenthesised query breaks query it is embedded in Sean Whitton
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

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).