aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorGravatar Jameson Graef Rollins <jrollins@finestructure.net>2011-05-25 18:01:13 -0700
committerGravatar Carl Worth <cworth@cworth.org>2011-05-27 16:18:57 -0700
commitd92146d3a6809f8ad940302af49cd99a0820665e (patch)
tree32e9d39126d39bc864e2932c47d81238fdf08af5 /notmuch-reply.c
parent757e06f74bb7b5f69c0a20c7a5432150e074055d (diff)
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.
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r--notmuch-reply.c13
1 files changed, 8 insertions, 5 deletions
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);