Re: [PATCH 6/8] cli: add support for batch tagging operations to "notmuch tag"
authorJameson Graef Rollins <jrollins@finestructure.net>
Mon, 2 Apr 2012 20:42:32 +0000 (13:42 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:00 +0000 (09:46 -0800)
bf/e9b8621e6f4d59f4f332257b85e5f7d13e4ea8 [new file with mode: 0644]

diff --git a/bf/e9b8621e6f4d59f4f332257b85e5f7d13e4ea8 b/bf/e9b8621e6f4d59f4f332257b85e5f7d13e4ea8
new file mode 100644 (file)
index 0000000..87c877d
--- /dev/null
@@ -0,0 +1,112 @@
+Return-Path: <jrollins@finestructure.net>\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 8CF85431FB6\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 13:42:39 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled\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 2NDZmre5fcBm for <notmuch@notmuchmail.org>;\r
+       Mon,  2 Apr 2012 13:42:39 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id EE913431FAE\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 13:42:38 -0700 (PDT)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id 8785F66E00BB;\r
+       Mon,  2 Apr 2012 13:42:38 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (gwave-213.ligo.caltech.edu\r
+ [131.215.114.213])    (Authenticated sender: jrollins)        by earth-doxen-submit\r
+ (Postfix) with ESMTP id 902F666E0011; Mon,  2 Apr 2012 13:42:34 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 6F4E67F4; Mon,  2 Apr 2012 13:42:34 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: David Bremner <david@tethera.net>, Jani Nikula <jani@nikula.org>,\r
+       notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 6/8] cli: add support for batch tagging operations to\r
+       "notmuch tag"\r
+In-Reply-To: <87aa2tc22z.fsf@zancas.localnet>\r
+References: <cover.1333231401.git.jani@nikula.org>\r
+       <f360a40bed50208d146aee8b06946b1b8315e818.1333231401.git.jani@nikula.org>\r
+       <87ty123tpc.fsf@servo.finestructure.net>\r
+       <87aa2tc22z.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.12+87~g3c4c85f (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 02 Apr 2012 13:42:32 -0700\r
+Message-ID: <87iphh50hz.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; 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: Mon, 02 Apr 2012 20:42:39 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Mon, Apr 02 2012, David Bremner <david@tethera.net> wrote:\r
+> Jameson Graef Rollins <jrollins@finestructure.net> writes:\r
+>> On Sat, Mar 31 2012, Jani Nikula <jani@nikula.org> wrote:\r
+>>> Add support for batch tagging operations through stdin to "notmuch\r
+>>> tag". This can be enabled with the new --stdin command line option to\r
+>>> "notmuch new". The input must consist of lines of the format:\r
+>>>\r
+>>> T +<tag>|-<tag> [...] [--] <search-terms>\r
+>>\r
+>\r
+> I think that's my fault. I was imagining a possible future line-oriented=\r
+=20\r
+> notmuch server and having various actions/queries possible. It seems a\r
+> bit blue sky at this point, but it does give extesibility fairly\r
+> cheaply.\r
+\r
+But then why not just make the command explicit, and just have the first\r
+field be "tag"?\r
+\r
+But then I wonder why do we even need any of this at all?  Isn't it this\r
+just exactly equivalent to:\r
+\r
+xargs -l notmuch <commands.txt\r
+\r
+??\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPeg84AAoJEO00zqvie6q8LusQAKZBLD1o+203CaLhMJ0EAYBe\r
+zLEnIoCN7CSv+6TncWb/4rOgZhBIGZYnv3t4MVUYz8YwZw5sledLWIq4NG5ZVuXV\r
+sIUDHAPxKKgcUSryJQcn5VooxqKgpmQicPZy6TopZAIUTtMWFRXoDoKrGoYtOQxD\r
+m1V9dX3W7FHLqV7hUlk8x332D3VpkjmBRT4j0EL1l4+gXEgl9ytmqYASdU2vXUB9\r
+TSsMGT+Kvk9JbKBsn/JczEYq/32jiCghJ4wHj3Az6BMABs+VVzibaDrxo2PnI8eI\r
+xB9iBCqqTsG0cq1cpoPumu7j5BPbGf1t4aY+tip3O6gKbNp7uG2tmhv1UgqhRiwV\r
+K5LJv3xG1/+WPmi1eAPicuGWnlzg7u/EIrP9HnBaLrI3fRidPjBvo4pbkbTKFvFW\r
+Y3d93JmoTzrpLhfBWVVSJ2/mR0/gVrziUEuQjEKX9WhI1k+IG4nmg8zAG1iNH+41\r
+D9plzAr1Hhwv7jNqz+QTrY5T1TEZbHoE44gd+eMveIngDlIxnZ0CSztHLc2rK47K\r
+xXO4uR7mD3Ruin8fyeGWQ4j1DygA+aWTh3AeEreTaRoJYppbYNZelRes1X1kjQBx\r
+e52HqehrmkCFgXXoLolZ730zdjKEOqt1NF/s3YrfmXp5eZx+V2k/TbikidguUYDN\r
+t9CZHzh5Tx2q3d+v6bgZ\r
+=3LPJ\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r