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 40DB1431FBC for ; Thu, 18 Apr 2013 03:26:50 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled 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 gSeC2O9NdzGM for ; Thu, 18 Apr 2013 03:26:49 -0700 (PDT) Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id F3CF7431FB6 for ; Thu, 18 Apr 2013 03:26:48 -0700 (PDT) Received: from fctnnbsc30w-156034082078.dhcp-dynamic.fibreop.nb.bellaliant.net ([156.34.82.78] helo=zancas.localnet) by tesseract.cs.unb.ca with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1USm3D-0005jj-DH; Thu, 18 Apr 2013 07:26:47 -0300 Received: from bremner by zancas.localnet with local (Exim 4.80) (envelope-from ) id 1USm37-0001O8-PY; Thu, 18 Apr 2013 07:26:41 -0300 From: David Bremner To: flavius.as@gmail.com, notmuch@notmuchmail.org Subject: Re: Python analogous for the CLI command In-Reply-To: <20130418081137.GA598@evolution> References: <20130418081137.GA598@evolution> User-Agent: Notmuch/0.15.2+73~g1c450ec (http://notmuchmail.org) Emacs/24.2.1 (x86_64-pc-linux-gnu) Date: Thu, 18 Apr 2013 07:26:41 -0300 Message-ID: <874nf4rv6m.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain X-Spam_bar: - 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: Thu, 18 Apr 2013 10:26:51 -0000 Flavius Aspra writes: > Hi > > Can you give me some pointers on how to use the python module to get the JSON > data with notmuch effort, equivalent to the command: > > notmuch show --entire-thread=true --format=json id: > > ? > > Some key classes and methods would be helpful. From the documentation of the > python code, I couldn't find indications about any of the parameters like > --entire-thread and --format. I answered this on IRC, but for the archives, this is currently not possible directly because the json generation code (in fact all of the output formatting code) does not live in the library, which is what the bindings bind to. d