From d92146d3a6809f8ad940302af49cd99a0820665e Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Wed, 25 May 2011 18:01:13 -0700 Subject: Break up format->part function into part_start and part_content functions. Future improvements (eg. crypto support) will require adding new part header. By breaking up the output of part headers from the output of part content, we can easily out new part headers with new formatting functions. --- notmuch-reply.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'notmuch-reply.c') diff --git a/notmuch-reply.c b/notmuch-reply.c index 79599358..9c35475d 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -25,14 +25,18 @@ #include "gmime-filter-headers.h" static void -reply_part (GMimeObject *part, - unused (int *part_count)); +reply_part_content (GMimeObject *part); static const notmuch_show_format_t format_reply = { "", "", NULL, "", NULL, "", - "", reply_part, NULL, "", "", + "", + NULL, + reply_part_content, + NULL, + "", + "", "", "", "" }; @@ -57,8 +61,7 @@ show_reply_headers (GMimeMessage *message) } static void -reply_part (GMimeObject *part, - unused (int *part_count)) +reply_part_content (GMimeObject *part) { GMimeContentType *content_type = g_mime_object_get_content_type (GMIME_OBJECT (part)); GMimeContentDisposition *disposition = g_mime_object_get_content_disposition (part); -- cgit v1.2.3