Re: [notmuch] [PATCH] notmuch-config: make new message tags configurable
authorCarl Worth <cworth@cworth.org>
Fri, 23 Apr 2010 17:40:50 +0000 (10:40 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:50 +0000 (09:36 -0800)
0e/d97b0c61601dee6783f18b12b1f5533af31bbb [new file with mode: 0644]

diff --git a/0e/d97b0c61601dee6783f18b12b1f5533af31bbb b/0e/d97b0c61601dee6783f18b12b1f5533af31bbb
new file mode 100644 (file)
index 0000000..e4b00b5
--- /dev/null
@@ -0,0 +1,114 @@
+Return-Path: <cworth@cworth.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id E736B4196F3\r
+       for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 10:40:51 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.89\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5\r
+       tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01]\r
+       autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 6hNNn+o4OI+h; Fri, 23 Apr 2010 10:40:51 -0700 (PDT)\r
+Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 2AC9B431FC1;\r
+       Fri, 23 Apr 2010 10:40:51 -0700 (PDT)\r
+Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
+       id D0546568DE4; Fri, 23 Apr 2010 10:40:50 -0700 (PDT)\r
+From: Carl Worth <cworth@cworth.org>\r
+To: Ben Gamari <bgamari.foss@gmail.com>, notmuch <notmuch@notmuchmail.org>\r
+Subject: Re: [notmuch] [PATCH] notmuch-config: make new message tags\r
+       configurable\r
+In-Reply-To: <1268432006-24333-2-git-send-email-bgamari.foss@gmail.com>\r
+References: <1268432006-24333-1-git-send-email-bgamari.foss@gmail.com>\r
+       <1268432006-24333-2-git-send-email-bgamari.foss@gmail.com>\r
+Date: Fri, 23 Apr 2010 10:40:50 -0700\r
+Message-ID: <87tyr2f4nx.fsf@yoom.home.cworth.org>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 23 Apr 2010 17:40:52 -0000\r
+\r
+--=-=-=\r
+\r
+On Fri, 12 Mar 2010 17:13:26 -0500, Ben Gamari <bgamari.foss@gmail.com> wrote:\r
+> Add a new_tags option in the [messages] section of the configuration\r
+> file to allow the user to specify which tags should be added to new\r
+> messages by notmuch new.\r
+\r
+Thanks, Ben!\r
+\r
+I finally broke down and decided I needed this feature.\r
+\r
+Previously I've done all of my automatic tagging as global searches,\r
+(and it's those tags that I want to switch to just search macros as I've\r
+talked about many times in the past).\r
+\r
+But I'm now doing things like a "merge window" tag where I want it\r
+applied to new messages as they come in, but I also want to be able to\r
+manually remove the tag from messages where it doesn't make sense. So a\r
+global search doesn't do what I want here at all.\r
+\r
+For me, I'll probably go the route of having "notmuch new" add a "new"\r
+tag in addition to "inbox" and "unread" and then I'll have my\r
+notmuch-poll script act on that, then remove the "new" tag from all\r
+tagged messages. I wouldn't want to impose a "new" tag on everyone since\r
+most people won't have a notmuch-poll removing "new" by default so that\r
+tag would just build up.\r
+\r
+Meanwhile, I know that Keith Packard and Eric Anholt are already having\r
+their notmuch-poll scripts remove the "unread" tag from all message,\r
+since they don't find that tag useful at all. This new configuration\r
+will help them as well.\r
+\r
+So I've now merged this patch, and as usual, I followed up with some\r
+changes as well. Here's what I did in addition:\r
+\r
+  * Fixed the compiler warning.\r
+\r
+  * Fixed "notmuch setup" to add the documentation block to the\r
+    configuration file when adding new options there.\r
+\r
+  * Renamed the new configuration option from:\r
+\r
+       [messages]\r
+       new_tags=inbox;unread;\r
+\r
+    to instead be:\r
+\r
+       [new]\r
+       tags=inbox;unread;\r
+\r
+  * Fixed "notmuch setup" to prompt for this new setting.\r
+\r
+Thanks again,\r
+\r
+-Carl\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iD8DBQFL0dui6JDdNq8qSWgRAreaAKCTPWoQMt4psAB2JYg8igiFoPO3owCgh8h3\r
+EUTs9/aKQlyffE2wfjnG9nk=\r
+=VexN\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r