Re: [notmuch] [PATCH 3/3] notmuch-show.c: prototype tabular output format, with outpu...
authorCarl Worth <cworth@cworth.org>
Wed, 10 Mar 2010 09:25:22 +0000 (01:25 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:21 +0000 (09:36 -0800)
d3/292efdb574af7ad2bea21d99f1a2b1dbc968a4 [new file with mode: 0644]

diff --git a/d3/292efdb574af7ad2bea21d99f1a2b1dbc968a4 b/d3/292efdb574af7ad2bea21d99f1a2b1dbc968a4
new file mode 100644 (file)
index 0000000..1d8e807
--- /dev/null
@@ -0,0 +1,86 @@
+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 650CB4916B2\r
+       for <notmuch@notmuchmail.org>; Wed, 10 Mar 2010 01:25:41 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -3.327\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-3.327 tagged_above=-999 required=5\r
+       tests=[ALL_TRUSTED=-1.8, AWL=1.072, BAYES_00=-2.599] 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 3qLl26o81f-8; Wed, 10 Mar 2010 01:25:40 -0800 (PST)\r
+Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5EEDD4916AE;\r
+       Wed, 10 Mar 2010 01:25:40 -0800 (PST)\r
+Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
+       id AAA5A54C004; Wed, 10 Mar 2010 01:25:22 -0800 (PST)\r
+From: Carl Worth <cworth@cworth.org>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+In-Reply-To: <87iq95uu2j.fsf@convex-new.cs.unb.ca>\r
+References: <87iqc4yyo8.fsf@yoom.home.cworth.org>\r
+       <1261234524-25522-1-git-send-email-david@tethera.net>\r
+       <1261234524-25522-2-git-send-email-david@tethera.net>\r
+       <1261234524-25522-3-git-send-email-david@tethera.net>\r
+       <1261234524-25522-4-git-send-email-david@tethera.net>\r
+       <87r5nt8e99.fsf@yoom.home.cworth.org>\r
+       <87iq95uu2j.fsf@convex-new.cs.unb.ca>\r
+Date: Wed, 10 Mar 2010 01:25:22 -0800\r
+Message-ID: <87lje08r5p.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
+Subject: Re: [notmuch] [PATCH 3/3] notmuch-show.c: prototype tabular output\r
+ format, with output control\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: Wed, 10 Mar 2010 09:25:41 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Tue, 09 Mar 2010 16:19:16 -0400, David Bremner <david@tethera.net> wrote:\r
+> I think some tabular format would be handy because it is very easy to\r
+> parse with scripts, and because it is a natural natural way to get\r
+> e.g. a list of message-ids.\r
+>=20\r
+> --format=3Dtabular --output=3Dmessage-id\r
+\r
+Ah, so maybe your "notmuch show --format=3Dtabular" is basically the same\r
+thing I imagined for "notmuch search" (once we teach it to accept a list\r
+of the desired elements to output).\r
+\r
+> On the other hand, I'm not yet using this code, so I guess the main\r
+> point is to discuss how output control should be implemented, and in\r
+> that sense the patch is a demo. I suspect once we start using json\r
+> output more, we will definitely want it there.\r
+\r
+Yes. I think we next need to implement some --output options and then\r
+see what we want from there.\r
+\r
+=2DCarl\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iD8DBQFLl2WC6JDdNq8qSWgRAu/DAJwMvBLHHHGrDCIISPqeb/w3kDorbACeMBz2\r
+rimy19ZAkAG0UDDx8ph41Ek=\r
+=H7On\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r