aboutsummaryrefslogtreecommitdiff
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2011-05-23 15:31:32 -0700
committerJameson Graef Rollins <jrollins@finestructure.net>2011-05-23 15:31:32 -0700
commit2f8871df6ea3c0b44f85a0fc1b4f58a6b70b0a0e (patch)
tree600325a4bc630431bc67f03aef99d329d5bd3036 /notmuch-reply.c
parentecae541031911b65594c3ec757abb671583e8872 (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-reply.c')
-rw-r--r--notmuch-reply.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c
index b5ca19c..ab15650 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -461,6 +461,8 @@ notmuch_reply_format_default(void *ctx, notmuch_config_t *config, notmuch_query_
const char *subject, *from_addr = NULL;
const char *in_reply_to, *orig_references, *references;
const notmuch_show_format_t *format = &format_reply;
+ notmuch_show_params_t params;
+ params.part = -1;
for (messages = notmuch_query_search_messages (query);
notmuch_messages_valid (messages);
@@ -520,7 +522,7 @@ notmuch_reply_format_default(void *ctx, notmuch_config_t *config, notmuch_query_
notmuch_message_get_header (message, "from"));
show_message_body (notmuch_message_get_filename (message),
- format);
+ format, &params);
notmuch_message_destroy (message);
}