diff options
author | John Lenz <lenz@math.uic.edu> | 2013-07-01 19:19:42 -0500 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2013-08-27 07:57:36 -0300 |
commit | f735a85c28a3c6b6e38ecaba04029a917c6d6830 (patch) | |
tree | 6dc52a163720aa2ac3532b1b0d857f9536e78800 /notmuch-client.h | |
parent | 3e60e0b3e9a0cc762abe077fb0077f23ac29f56c (diff) |
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
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 4 |
1 files changed, 3 insertions, 1 deletions
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, |