From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2GVzK/mrymXn4QAAqHPOHw:P1 (envelope-from ) for ; Tue, 13 Feb 2024 00:38:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 2GVzK/mrymXn4QAAqHPOHw (envelope-from ) for ; Tue, 13 Feb 2024 00:38:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707781113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=PIOBlubdBA666WIacPK4n+IJD9GgVxvX8MIh1QlgKWk=; b=VvznaZDtpUfVx4I2NiTbw3JIqw5dihR8/ROROcXlzoOXn5NLbZbZVsT+wp9lTS+fXgHGXZ U1f0ADIScsetDcUBD0I4LjnuwcgyE4dGzEEkeIq+t6err04Du+RxQKFX7T2BvSKZqRvb8O pUFLMxKhEA9cz6/OymKmjuckApQ3Q8di4cmera/hM0pQAmnPXikpvKj4kXfqQGKQhtGunG pKPo5+JqPTeyho5yypm2Zk0bBss5+l9tnvrEqB9rbgKZEp5FJ6qYIUDbOj02y0dkY4BV+C 02k8PGvEKO9tpliy07Oiz31poJWYJXya32pKCRUFFu6Yv5OCJJKpuR0xP1EeSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707781113; a=rsa-sha256; cv=none; b=JJCmnfSwCBcDHPQLYsoUnYBo9pqH6HkTK5c3f6bmirbNiyrXPQNa3F85627J7BJgpU39Xn KhWMWB1/mn0gJlO2XALfAkWTRPRsgbb60KoA4hUJcPLz6w9fuZqsU8qqdMHiNM485mKZgy wNgXp6pu6ZWc0QWJeJP9k7QvbXmYAxXzZ+SPQBR7Tww/VRjcSzb9gUR/06ex9rOLqI+Q9c nDKXmz0KIAB0Ot5S2ROE2oTZBn3l0rAJbt/7J57eaD1aVFa1x8WO1WrCWZA4RgxbeLPXIx zWXE3T92x8BWqccTi3ZOtTIUDX4Ou074+SCBJPK7XZbZkVSZr/JiC+QF159v/Q== Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5882554CCE for ; Tue, 13 Feb 2024 00:38:33 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6D1B85F37E; Mon, 12 Feb 2024 23:38:24 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [192.99.9.157]) by mail.notmuchmail.org (Postfix) with ESMTPS id 85E505E50E for ; Mon, 12 Feb 2024 23:38:20 +0000 (UTC) Received: from tethera.net (fctnnbsc51w-156-57-35-156.dhcp-dynamic.fibreop.nb.bellaliant.net [156.57.35.156]) by phubs.tethera.net (Postfix) with ESMTPS id C7029180066; Mon, 12 Feb 2024 19:38:18 -0400 (AST) Received: (nullmailer pid 702505 invoked by uid 1000); Mon, 12 Feb 2024 23:38:18 -0000 From: David Bremner To: Ralph Seichter , notmuch@notmuchmail.org Subject: Re: Individual tag file lines and removing all tags? In-Reply-To: <87wmrb8as8.fsf@ra.horus-it.com> References: <87wmrb8as8.fsf@ra.horus-it.com> Date: Mon, 12 Feb 2024 19:38:18 -0400 Message-ID: <87plx1xnh1.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 6WN7IPNEBMK677NWTE2SW4ZNMWQJ6H2O X-Message-ID-Hash: 6WN7IPNEBMK677NWTE2SW4ZNMWQJ6H2O X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE X-Migadu-Spam-Score: 3.25 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: 3.25 X-Migadu-Queue-Id: 5882554CCE X-TUID: kNQlG7asvVFu Ralph Seichter 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).