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 058BF431FAE for ; Mon, 14 Dec 2009 15:10:21 -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 Gjv73Ey4Hqyn for ; Mon, 14 Dec 2009 15:10:19 -0800 (PST) Received: from pivot.cs.unb.ca (pivot.cs.unb.ca [131.202.240.57]) by olra.theworths.org (Postfix) with ESMTP id 14BBB431FBC for ; Mon, 14 Dec 2009 15:10:19 -0800 (PST) Received: from fctnnbsc30w-142167182194.pppoe-dynamic.high-speed.nb.bellaliant.net ([142.167.182.194] helo=localhost) by pivot.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NKK3W-00034a-9F; Mon, 14 Dec 2009 19:10:18 -0400 Received: from bremner by localhost with local (Exim 4.69) (envelope-from ) id 1NKK3Q-0003wC-UG; Mon, 14 Dec 2009 19:10:12 -0400 From: David Bremner To: Carl Worth , notmuch@notmuchmail.org In-Reply-To: <87k4wp2noq.fsf@yoom.home.cworth.org> References: <87iqcapijl.fsf@pivot.cs.unb.ca> <87k4wp2noq.fsf@yoom.home.cworth.org> Date: Mon, 14 Dec 2009 19:10:12 -0400 Message-ID: <87skbdcfu3.fsf@pivot.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender-Verified: bremner@pivot.cs.unb.ca Subject: Re: [notmuch] RFC: output json from notmuch? 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: Mon, 14 Dec 2009 23:10:21 -0000 On Mon, 14 Dec 2009 14:30:45 -0800, Carl Worth wrote: > I'm still not sure of the need to depend on a library just to *generate* > any particular format. I would expect that job to be so constrained as > to be almost trivial. I won't necessarily block a patch based on that, > but I think we should at least look at how easy it would be to just emit > the syntax manually. OK, I'll wait for Scott's patch, and see how he is using cJSON. Just stealing a few functions might be the way to go. The cJSON code is less horrifying after running through indent. Now all we need is "indent --carl" :) d