aboutsummaryrefslogtreecommitdiff
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2011-05-22 19:56:53 -0700
committerCarl Worth <cworth@cworth.org>2011-05-23 14:55:27 -0700
commit6c2417cabc1b35ea4fc9db6493d85354b1039d6d (patch)
tree2294ff3d2ad52b12cb657966d984c29b0acd89c0 /notmuch-reply.c
parentd2177d0b22a95989dee4f46a1b2cca68484a2ce3 (diff)
add part_sep formatter to replace "first" argument to part format functions
A new field "part_sep" is added to the notmuch_show_format structure, to be used for part separation. This is cleaner than the "first" argument that was being passed around to the part arguments, and allows the function that handles overall part output formatting (show_message_part) to directly handle when outputting the separator.
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r--notmuch-reply.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c
index 064d27e..b5ca19c 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -26,14 +26,13 @@
static void
reply_part (GMimeObject *part,
- unused (int *part_count),
- unused (int first));
+ unused (int *part_count));
static const notmuch_show_format_t format_reply = {
NULL,
NULL, NULL,
NULL, NULL, NULL,
- NULL, reply_part, NULL, NULL,
+ NULL, reply_part, NULL, NULL, NULL,
NULL, NULL,
NULL
};
@@ -87,8 +86,7 @@ show_reply_headers (GMimeMessage *message)
static void
reply_part (GMimeObject *part,
- unused (int *part_count),
- unused (int first))
+ unused (int *part_count))
{
GMimeContentDisposition *disposition;
GMimeContentType *content_type;