From 6ce2bf68f53fec4302121763e588c33c7cd86a9c Mon Sep 17 00:00:00 2001 From: Scott Robinson Date: Thu, 31 Dec 2009 11:17:40 -0400 Subject: 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. --- notmuch-client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'notmuch-client.h') 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; -- cgit v1.2.3