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 16A61431FBC for ; Wed, 25 Nov 2009 08:17:00 -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 IYviWLsUiCtV for ; Wed, 25 Nov 2009 08:16:59 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by olra.theworths.org (Postfix) with ESMTP id 6B94C431FAE for ; Wed, 25 Nov 2009 08:16:59 -0800 (PST) Received-SPF: pass (mxus2: domain of quadhome.com designates 209.9.237.126 as permitted sender) client-ip=209.9.237.126; envelope-from=scott@quadhome.com; helo=megan.quadhome.com; Received: from megan.quadhome.com ([209.9.237.126]) by mx.perfora.net (node=mxus2) with ESMTP (Nemesis) id 0LgZuH-1NyVrD41mn-00niH0 for notmuch@notmuchmail.org; Wed, 25 Nov 2009 11:16:59 -0500 Received: from elise.quadhome.com (97-126-47-108.tukw.qwest.net [97.126.47.108]) by megan.quadhome.com (Postfix) with ESMTPSA id 6523EB8032 for ; Wed, 25 Nov 2009 08:16:56 -0800 (PST) Content-Type: text/plain; charset=UTF-8 From: Scott Robinson To: notmuch Date: Wed, 25 Nov 2009 08:16:54 -0800 Message-Id: <1259164514-sup-196@lisa> User-Agent: Sup/0.9 Content-Transfer-Encoding: 8bit Subject: [notmuch] 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:17:00 -0000 I'm hoping this thread will provide a guide for my efforts. I'm writing a web frontend for notmuch in Ruby. But, the output from the notmuch command-line is ambiguous. Therefore, I've started two branches experimenting with different ways of providing hooks. Which of these approaches are likely to be pulled upstream? == 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? == 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? -- Scott Robinson | http://quadhome.com/ Q: Why are my replies five sentences or less? A: http://five.sentenc.es/