From 2f8871df6ea3c0b44f85a0fc1b4f58a6b70b0a0e Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Mon, 23 May 2011 15:31:32 -0700 Subject: 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. --- notmuch-client.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'notmuch-client.h') 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 @@ -139,9 +140,6 @@ notmuch_search_tags_command (void *ctx, int argc, char *argv[]); 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[]); @@ -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); -- cgit v1.2.3