Re: Individual tag file lines and removing all tags?

Subject: Re: Individual tag file lines and removing all tags?

Date: Mon, 12 Feb 2024 19:38:18 -0400

To: Ralph Seichter, notmuch@notmuchmail.org

Cc:

From: David Bremner


Ralph Seichter <ralph@ml.seichter.de> writes:

> Looking at the notmuch-tag(1) man page, I wonder if something like the
> following tag file content is currently possible:
>
>   -* +deleted -- folder:.Trash
>   -* +ancient -- date:..10_years_ago
>   +foo -- from:foo@example.com
>
> What I am trying to achieve with lines 1 and 2 is replacing all existing
> tags (symbolised by '-*') with the 'deleted' or 'ancient' tag,
> respectively. With line 3, I want to add the 'foo' tag, but leaving any
> existing tags untouched (this is already works, of course).

As far as I understand your request, this would currently need 3
different calls to notmuch-tag (or some scripting in e.g. python).
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: