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 EB131431FBC for ; Wed, 25 Nov 2009 09:41:50 -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 p6+jd6i2dKSo for ; Wed, 25 Nov 2009 09:41:44 -0800 (PST) X-Greylist: delayed 5087 seconds by postgrey-1.32 at olra; Wed, 25 Nov 2009 09:41:44 PST Received: from megan.quadhome.com (megan.quadhome.com [209.9.237.126]) by olra.theworths.org (Postfix) with ESMTP id 2ACC8431FAE for ; Wed, 25 Nov 2009 09:41:44 -0800 (PST) Received: from elise.quadhome.com (97-126-47-108.tukw.qwest.net [97.126.47.108]) by megan.quadhome.com (Postfix) with ESMTPSA id 51D52B8032; Wed, 25 Nov 2009 09:41:42 -0800 (PST) From: Scott Robinson To: Jeffrey Ollie In-reply-to: <935ead450911250833j16359db3ob9c1d625c667ecc9@mail.gmail.com> References: <1259164514-sup-196@lisa> <935ead450911250833j16359db3ob9c1d625c667ecc9@mail.gmail.com> Date: Wed, 25 Nov 2009 09:40:56 -0800 Message-Id: <1259170137-sup-8249@lisa> User-Agent: Sup/0.9 Content-Transfer-Encoding: 8bit Content-Type: multipart/mixed; boundary="=-1259170856-252237-22804-3288-1-=" MIME-Version: 1.0 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 17:41:51 -0000 --=-1259170856-252237-22804-3288-1-= Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Excerpts from Jeffrey Ollie's message of Wed Nov 25 08:33:39 -0800 2009: > 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. I didn't use autoconf and friends. Just put in libtool where $(CXX) and $(CC) are. Going with the system defaults. See the attached patch. > > == 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? > Yes! As the json work is a bit more substantial, is it preferable to start a [PATCH] thread or link to a git repo? -- Scott Robinson | http://quadhome.com/ Q: Why are my replies five sentences or less? A: http://five.sentenc.es/ --=-1259170856-252237-22804-3288-1-= Content-Disposition: attachment; filename="libtoolize-notmuch.diff" Content-Type: application/octet-stream; name="libtoolize-notmuch.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL01ha2VmaWxlIGIvTWFrZWZpbGUKaW5kZXggMmNkMWIx Yi4uYjA2NTAwNiAxMDA2NDQKLS0tIGEvTWFrZWZpbGUKKysrIGIvTWFrZWZp bGUKQEAgLTQsNiArNCwxMCBAQCBDRkxBR1M9LU8yCiAKICMgQWRkaXRpb25h bCBwcm9ncmFtcyB0aGF0IGFyZSB1c2VkIGR1cmluZyB0aGUgY29tcGlsYXRp b24gcHJvY2Vzcy4KIEVNQUNTID89IGVtYWNzCitsaWJ0b29sID0gbGlidG9v bAorIyBOZWVkZWQgc28gbGlidG9vbCByZXBsYWNlcyBwYXJhbWV0ZXJzIGlu IGEgbW9kZXJuIGZhc2hpb24uCitDQyA9IGdjYworQ1hYID0gZysrCiAjIExv d2VyY2FzZSB0byBhdm9pZCBjbGFzaC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