From f735a85c28a3c6b6e38ecaba04029a917c6d6830 Mon Sep 17 00:00:00 2001 From: John Lenz Date: Mon, 1 Jul 2013 19:19:42 -0500 Subject: cli: add --include-html option to notmuch show For my client, the largest bottleneck for displaying large threads is exporting each html part individually since by default notmuch will not show the json parts. For large threads there can be quite a few parts and each must be exported and decoded one by one. Also, I then have to deal with all the crazy charsets which I can do through a library but is a pain. Therefore, this patch adds an --include-html option that causes the text/html parts to be included as part of the output of show. diff man/man1/notmuch-show.1 --- notmuch-client.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'notmuch-client.h') diff --git a/notmuch-client.h b/notmuch-client.h index da332f36..afb0ddf9 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -89,6 +89,7 @@ typedef struct notmuch_show_params { notmuch_bool_t raw; int part; notmuch_crypto_t crypto; + notmuch_bool_t include_html; } notmuch_show_params_t; /* There's no point in continuing when we've detected that we've done @@ -220,7 +221,8 @@ show_one_part (const char *filename, int part); void format_part_sprinter (const void *ctx, struct sprinter *sp, mime_node_t *node, - notmuch_bool_t first, notmuch_bool_t output_body); + notmuch_bool_t first, notmuch_bool_t output_body, + notmuch_bool_t include_html); void format_headers_sprinter (struct sprinter *sp, GMimeMessage *message, -- cgit v1.2.3