Re: Tag notmuch email based on header values?

Subject: Re: Tag notmuch email based on header values?

Date: Tue, 04 Oct 2022 14:48:14 +0200

To: Petter Reinholdtsen, notmuch@notmuchmail.org

Cc:

From: Alan Schmitt


Hello,

On 2022-10-04 14:04, Petter Reinholdtsen <pere@hungry.com> writes:

> I would like to tag all emails with a specific header, but fail to find
> a way to do this.  Is this a missing feature in notmuch?
>
> To be specific, I want to filter out emails related to request tracker
> tickets owned by me at the time of the email.  These emails get a simple
> RFC 822 style header in each email, that look like this:
>
>   RT-Owner: myusername
>
> I tried searching for 'RT-Owner' without any success, and have read the
> normuch-search-terms(7) dokucmentation trying to find a clue.  Is there
> something obvious I am missing.

I use afew for that, with rules like this:

[HeaderMatchingFilter.1]
header = List-Id
pattern = discuss.ocaml.org|caml-list.inria.fr
tags = +caml;+lists

I only run it on new mail. If you run afew without the --new flag, I
think it applies it to all mail.

Best,

Alan
signature.asc (application/pgp-signature)
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: