diff options
author | Mark Walters <markwalters1009@gmail.com> | 2012-07-24 19:23:27 +0100 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-07-24 15:29:22 -0300 |
commit | 0e63372efe28f2fff0791b293240695b19bfefd2 (patch) | |
tree | 3fc236352568968dd10ceea953f54a83a2734caa /notmuch-client.h | |
parent | 10ab2b57039d7ef06c82749530ff48675e81d16d (diff) |
cli: add --body=true|false option to notmuch-show.c
This option allows the caller to suppress the output of the bodies of
the messages. Currently this is only implemented for format=json.
This is used by notmuch-pick.el (although not needed) because it gives
a speed-up of at least a factor of a two (and in some cases a speed up
of more than a factor of 8); moreover it reduces the memory usage in
emacs hugely.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index 0c17b791..f9307989 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -87,6 +87,7 @@ typedef struct notmuch_crypto { typedef struct notmuch_show_params { notmuch_bool_t entire_thread; notmuch_bool_t omit_excluded; + notmuch_bool_t output_body; notmuch_bool_t raw; int part; notmuch_crypto_t crypto; @@ -176,7 +177,7 @@ notmuch_status_t show_one_part (const char *filename, int part); void -format_part_json (const void *ctx, mime_node_t *node, notmuch_bool_t first); +format_part_json (const void *ctx, mime_node_t *node, notmuch_bool_t first, notmuch_bool_t output_body); void format_headers_json (const void *ctx, GMimeMessage *message, notmuch_bool_t reply); |