unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: Ralph Seichter <ralph@ml.seichter.de>, notmuch@notmuchmail.org
Subject: Re: Individual tag file lines and removing all tags?
Date: Mon, 12 Feb 2024 19:38:18 -0400	[thread overview]
Message-ID: <87plx1xnh1.fsf@tethera.net> (raw)
In-Reply-To: <87wmrb8as8.fsf@ra.horus-it.com>

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).

  reply	other threads:[~2024-02-12 23:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-11 12:07 Individual tag file lines and removing all tags? Ralph Seichter
2024-02-12 23:38 ` David Bremner [this message]
2024-02-13  0:32   ` Ralph Seichter
2024-02-13  7:56     ` Sandra Snan
2024-02-14 15:55     ` David Bremner
2024-02-14 20:43       ` Ralph Seichter
2024-02-14 21:54         ` Sandra Snan
2024-02-15  0:42         ` David Bremner
2024-02-15  0:58           ` Ralph Seichter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87plx1xnh1.fsf@tethera.net \
    --to=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=ralph@ml.seichter.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).