From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A9272431FBC for ; Wed, 25 Nov 2009 08:33:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 AUd3MQ4Q-Qrb for ; Wed, 25 Nov 2009 08:33:40 -0800 (PST) Received: from mail-yx0-f187.google.com (mail-yx0-f187.google.com [209.85.210.187]) by olra.theworths.org (Postfix) with ESMTP id 1B8CC431FAE for ; Wed, 25 Nov 2009 08:33:40 -0800 (PST) Received: by yxe17 with SMTP id 17so6802218yxe.33 for ; Wed, 25 Nov 2009 08:33:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.91.26.7 with SMTP id d7mr2485071agj.1.1259166819742; Wed, 25 Nov 2009 08:33:39 -0800 (PST) In-Reply-To: <1259164514-sup-196@lisa> References: <1259164514-sup-196@lisa> Date: Wed, 25 Nov 2009 10:33:39 -0600 Message-ID: <935ead450911250833j16359db3ob9c1d625c667ecc9@mail.gmail.com> From: Jeffrey Ollie To: Scott Robinson Content-Type: text/plain; charset=UTF-8 Cc: notmuch Subject: Re: Using notmuch from Ruby, Python, et al. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 25 Nov 2009 16:33:40 -0000 On Wed, Nov 25, 2009 at 10:16 AM, Scott Robinson wrote: > > == Shared Library > > I have modified the build to output a shared library. It's a small change > relying on libtool. > > However, the archives indicate Carl dislikes libtool? Ugh, please, let's not go down the autoconf/automake/libtool route. > == JSON output > > I added a --output=(text|json) option to "search" and "show." Then, emit json > results appropriately. > > To accomplish this, I used the cJSON library sans parsing logic. > > However, I saw discussion about providing a --format option? Awesome, I was just looking at using json-glib but I haven't gotten very far yet, mainly because I've never used it before (nor done much of anything with JSON). I was going to call the option '--output-format=(standard|json)' but I'm not going to worry about the color of that bikeshed. IMHO, I think both approaches would be valuable, that way people writing front ends could choose the methods that worked best for them. Do you have patches that you are ready to share? -- Jeff Ollie