diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2011-05-23 15:31:32 -0700 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2011-05-23 15:31:32 -0700 |
commit | 2f8871df6ea3c0b44f85a0fc1b4f58a6b70b0a0e (patch) | |
tree | 600325a4bc630431bc67f03aef99d329d5bd3036 /notmuch-client.h | |
parent | ecae541031911b65594c3ec757abb671583e8872 (diff) |
New part output handling as option to notmuch-show.
Outputting of single MIME parts is moved to an option of notmuch show,
instead of being handled in it's own sub-command. The recent rework
of multipart mime allowed for this change but consolidating part
handling into a single recursive function (show_message_part) that
includes formatting. This allows for far simpler handling single
output of a single part, including formatting.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index 47a4e570..7221c681 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -78,6 +78,7 @@ typedef struct notmuch_show_format { typedef struct notmuch_show_params { int entire_thread; int raw; + int part; } notmuch_show_params_t; /* There's no point in continuing when we've detected that we've done @@ -140,9 +141,6 @@ int notmuch_cat_command (void *ctx, int argc, char *argv[]); int -notmuch_part_command (void *ctx, int argc, char *argv[]); - -int notmuch_config_command (void *ctx, int argc, char *argv[]); const char * @@ -159,7 +157,8 @@ query_string_from_args (void *ctx, int argc, char *argv[]); notmuch_status_t show_message_body (const char *filename, - const notmuch_show_format_t *format); + const notmuch_show_format_t *format, + notmuch_show_params_t *params); notmuch_status_t show_one_part (const char *filename, int part); |