unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: flavius.as@gmail.com, notmuch@notmuchmail.org
Subject: Re: Python analogous for the CLI command
Date: Thu, 18 Apr 2013 07:26:41 -0300	[thread overview]
Message-ID: <874nf4rv6m.fsf@zancas.localnet> (raw)
In-Reply-To: <20130418081137.GA598@evolution>

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

  reply	other threads:[~2013-04-18 10:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18  8:11 Python analogous for the CLI command Flavius Aspra
2013-04-18 10:26 ` David Bremner [this message]
2013-04-18 10:27 ` Justus Winter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874nf4rv6m.fsf@zancas.localnet \
    --to=david@tethera.net \
    --cc=flavius.as@gmail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).