Re: regex search in the body

Subject: Re: regex search in the body

Date: Wed, 2 Apr 2025 10:38:37 +0200

To: Peter Münster

Cc: notmuch@notmuchmail.org

From: Michael J Gruber


Am Mi., 2. Apr. 2025 um 05:36 Uhr schrieb Peter Münster <pm@a16n.net>:
>
> On Wed, Mar 26 2025, David Bremner wrote:
>
> >> I would like to find all messages with the substring "identité":
> >> - identité
> >> - identités
> >> - l'identité
> >> - l’identité
> >> - d'identité
> >> - d’identité
> >
> > The follow source change seems to enable it at least for s-expression
> > queries:
>
> Thank you, this is very useful!
>
> It works well with Emacs, I just need to
> (setq gnus-search-notmuch-switches '("--query=sexp")).
>
> It’s not important, but it would be nice to have one further
> enhancement, so that the "*" wildcard works also with --query=sexp.
> Example:
> "--query=sexp prefix*" should give the same results as just "prefix*".

I can't even find the form `prefix*` in the search term documentation
(just `*`). SInce it's "a little bit of glob but not really" and we
have regex searches now I would advocate for turning off `prefix*`
because it's just confusing ("Oh, globbing works!" - "No, it
doesn't.") and unsystematic (`*suffix` ...).

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

Thread: