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 BC3494196F3 for ; Fri, 23 Apr 2010 10:49:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham 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 Fhp4jCalBRbQ; Fri, 23 Apr 2010 10:49:29 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C2FC7431FC1; Fri, 23 Apr 2010 10:49:29 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 6C251568DE4; Fri, 23 Apr 2010 10:49:29 -0700 (PDT) From: Carl Worth To: Jameson Rollins , Sebastian Spaeth , Anthony Towns , notmuch Subject: Re: [PATCH] notmuch new --new-tags=tags... In-Reply-To: <87y6gseval.fsf@servo.finestructure.net> References: <871velp0be.fsf@SSpaeth.de> <87y6gseval.fsf@servo.finestructure.net> Date: Fri, 23 Apr 2010 10:49:29 -0700 Message-ID: <87sk6mf49i.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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, 23 Apr 2010 17:49:30 -0000 --=-=-= On Mon, 12 Apr 2010 07:59:14 -0400, Jameson Rollins wrote: > On Mon, 12 Apr 2010 10:00:37 +0200, "Sebastian Spaeth" wrote: > > On 2010-04-10, Anthony Towns wrote: > > > The attached patch makes "notmuch new --new-tags=unread,new" set the > > > "unread" and "new" tags on any new mail it finds rather than "unread" > > > and "inbox". Or whatever other tags you happen to specify. Thanks very much for the patch, AJ. It's definitely a useful feature. > > Thanks for the patch. I can't comment on the code quality, but rather > > than having to specify the set of new tags on the command line every > > time, I think it would make more sense to put them in the notmuch config > > file as this patch does: > > id:1268432006-24333-2-git-send-email-bgamari.foss@gmail.com I ended up taking that version instead, (using a configuration setting for this instead of a command-line option to "notmuch new". One could imagine accepting the command-line option as well, but I don't think that would actually be useful. Let me know if you disagree. > I was thinking about this, and it seems to me that we really need is a > way to just specify which tags should be applied to new messages based > on search terms. Yes, I agree. Many of us are (or will soon be) achieving the feature based on the following recipe: * Configuring new.tags to add a "new" tag. * Writing a notmuch-poll script that does the following: * Performs "notmuch tag" searches to add tags to "new" messages. * Clears the "new" tag from all messages. * Configuring notmuch-poll-script inside emacs to invoke our notmuch-poll script. If we added support for configuring search-based tagging directly into notmuch, then the above recipe could be reduced to a single block of configuration settings, which sounds much nicer. So I'll look forward to any implementation to provide that. In the meantime, we can muddle along with the functionality we want, (but a little more manual effort to achieve it). -Carl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFL0d2p6JDdNq8qSWgRAjbwAJ49XEXoarvTiCYbeDeaY1CglBsCGQCdGtBk 7adiCdXJlRWJ4TemcAs2LqA= =wpZo -----END PGP SIGNATURE----- --=-=-=--