Re: regex search in the body

Subject: Re: regex search in the body

Date: Thu, 20 Mar 2025 21:04:01 +0100

To: notmuch@notmuchmail.org

Cc:

From: Peter Münster


On Thu, Mar 20 2025, David Bremner wrote:

> I don't know anything about the mu implementation of regex search, maybe
> they have some clever idea I haven't thought of.

Mu implements the regular-expression search by matching the user's
regular expression against all "terms" (words or phrases) that are in
the database for a given field. (from "man mu-query")


> adding the body as a value slot would cause noticable bloat in the
> database size

It seems that mu uses less space than notmuch. Output of "du -h":
1008K   .maildir/.notmuch/xapian
568K    .cache/mu/xapian


> (and hence performance degradation).

The regex search is less performant, but it’s clearly mentioned in the
man page.


> If someone wants to do experiments, I am happy to provide guidance.

I can help with testing and paying a bounty. But I won’t be able to
code.

-- 
           Peter

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

Thread: