unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Scott Robinson <scott@quadhome.com>
To: notmuch <notmuch@notmuchmail.org>
Subject: Using notmuch from Ruby, Python, et al.
Date: Wed, 25 Nov 2009 08:16:54 -0800	[thread overview]
Message-ID: <1259164514-sup-196@lisa> (raw)

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/

             reply	other threads:[~2009-11-25 16:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-25 16:16 Scott Robinson [this message]
2009-11-25 16:33 ` Using notmuch from Ruby, Python, et al Jeffrey Ollie
2009-11-25 17:40   ` Scott Robinson
2009-11-25 17:57     ` Jeffrey Ollie
2009-11-25 17:46 ` Jeffrey Ollie
2009-11-25 17:58   ` Scott Robinson
2009-11-25 18:03     ` Jeffrey Ollie
2009-11-25 18:10       ` Scott Robinson
2009-11-28  2:55     ` Carl Worth
2009-11-28  2:58       ` Mikhail Gusarov
2009-11-28  2:47 ` Carl Worth

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=1259164514-sup-196@lisa \
    --to=scott@quadhome.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).