Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8CBA3431FC0; Fri, 18 Dec 2009 09:53:11 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xCzp8+UzxwZX; Fri, 18 Dec 2009 09:53:10 -0800 (PST) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 93DB5431FAE; Fri, 18 Dec 2009 09:53:10 -0800 (PST) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 659F5254306; Fri, 18 Dec 2009 09:53:10 -0800 (PST) From: Carl Worth To: Marten Veldthuis , Alex Ghitza , notmuch@notmuchmail.org In-Reply-To: <878wd0a45c.fsf@veldthuis.com> References: <54aaxg5xyl.fsf@gmail.com> <878wd0a45c.fsf@veldthuis.com> Date: Fri, 18 Dec 2009 09:53:09 -0800 Message-ID: <87fx78yxru.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] automatically assigning tags to new messages? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2009 17:53:11 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Fri, 18 Dec 2009 12:54:39 +0100, Marten Veldthuis = wrote: > > - if it is coming from me, tag it +sent, but not +unread or +inbox >=20 > Not quite sure. Currently I'm not doing this, don't know if this is > possible within a single incantation of notmuch-tag. I think you > probably need a first search to get message ids, and then tag only those > message ids (doing it like the others above would tag all messages in > the thread with sent, which is probably not what you want). Hi Marten, I'm not sure what's different about this case. A command like those you provided earlier should work fine. The "notmuch tag" command only tags individual messages explicitly matched by the search terms. It never expands the tagging to unmatched messages in the same thread. =2DCarl PS. I've talked before about allowing for the configuration file to do automatic tagging of messages. I've also talked about making something like "virtual tags" where any automatically-applied tags would act somehow differently than standard flags. More recently, my thinking is taking me away from both of those ideas. I think now that what I want in the configuration file is simply a set of saved search strings. Something like: [search] interesting =3D to:notmuchmail.org and not from:cworth and then this could be used within a search string such as: notmuch show search:interesting This would make it very clear that "saved searches" are separate from tags, and you might very well want to combine them in a single search: notmuch show search:interesting or tag:interesting As I think about this, I think these saved searches could displace much of my use of tags, (at least all of the tags which I'm automatically applying in the script I run after "notmuch new"). The big difference would be that the UI wouldn't provide an indication of a message matching particular saved searches the way it does for tags. But I might actually prefer that, (since currently, I have so many automatically-applied tags on every message that the display is often just a lot of noise). Anyway, that's something I plan to experiment with. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLK8GG6JDdNq8qSWgRAo6rAKCPjLknErNTm8gTTsK/LDuZKQzb1QCfS8bA MXltG8Z3aK1w3KRnXk2jHpc= =z3J9 -----END PGP SIGNATURE----- --=-=-=--