Re: searching for a message by path

Subject: Re: searching for a message by path

Date: Mon, 23 Sep 2024 18:14:00 -0400

To: Teemu Likonen, frederik@ofb.net

Cc: notmuch@notmuchmail.org

From: Panayotis Manganaris


Teemu Likonen <tlikonen@iki.fi> writes:

>
> How about simply using Bogofilter's output value
>

To each their own, of course. I just prefer "wholemeal" programming, as Geraint Jones called it.

I did think of some relevant considerations, though:

"notmuch tag --batch" is much faster than repeatedly invoking "notmuch tag"

Of course, this performance difference is probably not noticeable in a well curated inbox.

Also, the awk-print-tag-batch pattern is re-usable if you'd like to auto-tag messages in other ways e.g.
- tag "vip" threads from known addresses
- pick out coupon codes using a full text search (again, to each their own)

I find this way to be more flexible than the current provisions for "named queries" in the notmuch config/database:

query:<name>

     The 'query:' prefix allows queries to refer to previously saved queries added with ‘notmuch-config(1)’.

Though, I'm not poo-pooing that feature. I would certainly appreciate further development on this front.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: