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