Re: regex search in the body

Subject: Re: regex search in the body

Date: Thu, 03 Apr 2025 09:18:52 +0200

To: notmuch@notmuchmail.org

Cc:

From: Peter Münster


On Wed, Apr 02 2025, David Bremner wrote:

> In case you missed it, there is an equivalent sexp query

Indeed, I missed it. Thank you!


>    '(starts-with prefix)'

But it seems that it doesn’t work with body:

(body (starts-with prefix)) -> 'body' does not support wildcard queries

But adding "SEXP_FLAG_WILDCARD" to the prefixes in parse-sexp.cc helps.


> Obviously that's a bit more typing.

No problem.


> There is also the more general
>
>     '(infix prefix*)'

Thanks, it seems to work for me!

-- 
           Peter

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: