Re: [notmuch] JSON output as default [was: Re: [PATCH] Add an "--output=(json|text...
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 24 Feb 2010 13:54:37 +0000 (14:54 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:16 +0000 (09:36 -0800)
f1/dd92a711ec5358df803128db419fe8c40663fa [new file with mode: 0644]

diff --git a/f1/dd92a711ec5358df803128db419fe8c40663fa b/f1/dd92a711ec5358df803128db419fe8c40663fa
new file mode 100644 (file)
index 0000000..808e1ef
--- /dev/null
@@ -0,0 +1,64 @@
+Return-Path: <Sebastian@SSpaeth.de>\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 67A79431FBC\r
+       for <notmuch@notmuchmail.org>; Wed, 24 Feb 2010 05:54:44 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.611\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.611 tagged_above=-999 required=5\r
+       tests=[AWL=-0.612, BAYES_50=0.001] 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 sbYsZzV3iAyQ for <notmuch@notmuchmail.org>;\r
+       Wed, 24 Feb 2010 05:54:43 -0800 (PST)\r
+Received: from homiemail-a24.g.dreamhost.com (caiajhbdcbef.dreamhost.com\r
+       [208.97.132.145])\r
+       by olra.theworths.org (Postfix) with ESMTP id CE715431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 24 Feb 2010 05:54:43 -0800 (PST)\r
+Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch\r
+       [129.132.133.204])\r
+       by homiemail-a24.g.dreamhost.com (Postfix) with ESMTPA id BCCE22C806B\r
+       for <notmuch@notmuchmail.org>; Wed, 24 Feb 2010 05:54:39 -0800 (PST)\r
+Received: by sspaeth.de (sSMTP sendmail emulation);\r
+       Wed, 24 Feb 2010 14:54:37 +0100\r
+From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>\r
+To: notmuch@notmuchmail.org\r
+In-Reply-To: <87635nwmnk.fsf@yoom.home.cworth.org>\r
+References: <1261114167-sup-8228@lisa>\r
+       <1261141195-5469-1-git-send-email-david@tethera.net>\r
+       <878wajwwth.fsf@yoom.home.cworth.org>\r
+       <87wry33bxq.fsf@servo.finestructure.net>\r
+       <87635nwmnk.fsf@yoom.home.cworth.org>\r
+Date: Wed, 24 Feb 2010 14:54:37 +0100\r
+Message-ID: <87ocjekaci.fsf@SSpaeth.de>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Subject: Re: [notmuch] JSON output as default [was: Re: [PATCH] Add an\r
+ "--output=(json|text|)" command-line option...]\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, 24 Feb 2010 13:54:44 -0000\r
+\r
+> I definitely want to be able to pipe single-field lists coming from\r
+> notmuch to grep, xargs, shell for loops, etc. without having to decode\r
+> JSON.\r
+\r
+While I would love to see JSON (even by default), I agree. If I just\r
+want to code up a notmuch-based address book with sth like:\r
+\r
+notmuch show to:Diana --output=to --sort=relevance --limit=20\r
+\r
+just getting back a plain list of mail addresses is the easiest to handle.\r