Re: regex search in the body

Subject: Re: regex search in the body

Date: Wed, 2 Apr 2025 12:27:27 +0200

To: Peter Münster

Cc: notmuch@notmuchmail.org

From: Michael J Gruber


Am Mi., 2. Apr. 2025 um 12:18 Uhr schrieb Peter Münster <pm@a16n.net>:
>
> On Wed, Apr 02 2025, Michael J Gruber wrote:
>
> > I can't even find the form `prefix*` in the search term documentation
> > (just `*`).
>
> Sorry, instead of "prefix*" I should have written
> "first-part-of-search-term*" or just "wildc*".

Yes, I assumed you meant prefix in a general sense (not "subject:" or
such), and this form "foo*" is the one which I do not find documented.
It is a glob, but most globs are not supported, just "*" and "foo*".
Which is what brought me to:

> > SInce it's "a little bit of glob but not really" and we have regex
> > searches now I would advocate for turning off `prefix*`
>
> IMHO the wildcard search is very useful, because it’s very fast.
> I would use regex searches only when really needed.

That is a point, yes. I haven't tried regex on body terms yet, but I
understand performance can make a usability difference here. It's just
that I've seen convenience eating into consistency to the extent of
being inconvenient before ;)

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

Thread: