Re: Python analogous for the CLI command

Subject: Re: Python analogous for the CLI command

Date: Thu, 18 Apr 2013 07:26:41 -0300

To: flavius.as@gmail.com, notmuch@notmuchmail.org

Cc:

From: David Bremner


Flavius Aspra <flavius.as@gmail.com> 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:<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

Thread: