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 E736B4196F3 for ; Fri, 23 Apr 2010 10:40:51 -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 6hNNn+o4OI+h; Fri, 23 Apr 2010 10:40:51 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2AC9B431FC1; Fri, 23 Apr 2010 10:40:51 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id D0546568DE4; Fri, 23 Apr 2010 10:40:50 -0700 (PDT) From: Carl Worth To: Ben Gamari , notmuch Subject: Re: [notmuch] [PATCH] notmuch-config: make new message tags configurable In-Reply-To: <1268432006-24333-2-git-send-email-bgamari.foss@gmail.com> References: <1268432006-24333-1-git-send-email-bgamari.foss@gmail.com> <1268432006-24333-2-git-send-email-bgamari.foss@gmail.com> Date: Fri, 23 Apr 2010 10:40:50 -0700 Message-ID: <87tyr2f4nx.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:40:52 -0000 --=-=-= On Fri, 12 Mar 2010 17:13:26 -0500, Ben Gamari wrote: > Add a new_tags option in the [messages] section of the configuration > file to allow the user to specify which tags should be added to new > messages by notmuch new. Thanks, Ben! I finally broke down and decided I needed this feature. Previously I've done all of my automatic tagging as global searches, (and it's those tags that I want to switch to just search macros as I've talked about many times in the past). But I'm now doing things like a "merge window" tag where I want it applied to new messages as they come in, but I also want to be able to manually remove the tag from messages where it doesn't make sense. So a global search doesn't do what I want here at all. For me, I'll probably go the route of having "notmuch new" add a "new" tag in addition to "inbox" and "unread" and then I'll have my notmuch-poll script act on that, then remove the "new" tag from all tagged messages. I wouldn't want to impose a "new" tag on everyone since most people won't have a notmuch-poll removing "new" by default so that tag would just build up. Meanwhile, I know that Keith Packard and Eric Anholt are already having their notmuch-poll scripts remove the "unread" tag from all message, since they don't find that tag useful at all. This new configuration will help them as well. So I've now merged this patch, and as usual, I followed up with some changes as well. Here's what I did in addition: * Fixed the compiler warning. * Fixed "notmuch setup" to add the documentation block to the configuration file when adding new options there. * Renamed the new configuration option from: [messages] new_tags=inbox;unread; to instead be: [new] tags=inbox;unread; * Fixed "notmuch setup" to prompt for this new setting. Thanks again, -Carl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFL0dui6JDdNq8qSWgRAreaAKCTPWoQMt4psAB2JYg8igiFoPO3owCgh8h3 EUTs9/aKQlyffE2wfjnG9nk= =VexN -----END PGP SIGNATURE----- --=-=-=--