diff options
author | Scott Robinson <scott@quadhome.com> | 2009-12-31 11:17:40 -0400 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-02-23 12:01:12 -0800 |
commit | 6ce2bf68f53fec4302121763e588c33c7cd86a9c (patch) | |
tree | 97eed1a84956f582cc43efbb16419c43b930c242 /notmuch-client.h | |
parent | 3ca7a4fbcc9cd72330bce1b1670150af1e250006 (diff) |
Add an "--format=(json|text)" command-line option to both notmuch-search and notmuch-show.
In the case of notmuch-show, "--format=json" also implies
"--entire-thread" as the thread structure is implicit in the emitted
document tree.
As a coincidence to the implementation, multipart message ID numbers are
now incremented with each part printed. This changes the previous
semantics, which were unclear and not necessary related to the actual
ordering of the message parts.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index 77766de2..c80b39cb 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -123,6 +123,9 @@ notmuch_status_t show_message_body (const char *filename, void (*show_part) (GMimeObject *part, int *part_count)); +char * +json_quote_str (const void *ctx, const char *str); + /* notmuch-config.c */ typedef struct _notmuch_config notmuch_config_t; |