summaryrefslogtreecommitdiffstats
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2016-09-13 20:14:11 +0300
committerDavid Bremner <david@tethera.net>2016-09-17 08:46:44 -0300
commita843fa48fedb7a3ce02af412404ba4359cdce5e0 (patch)
tree08713bfde1346c5593111aaec97afcbccce68d7a /notmuch-reply.c
parent0c5840862e2f8802b2d280dbf77da908d3617b10 (diff)
cli/reply: reuse show_reply_headers() in headers-only format
Align the code with default format reply. There should be no changes in output.
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r--notmuch-reply.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c
index 847e306f..5adbab62 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -668,7 +668,6 @@ notmuch_reply_format_headers_only(void *ctx,
{
GMimeMessage *reply;
const char *in_reply_to, *orig_references, *references;
- char *reply_headers;
/* The 0 means we do not want headers in a "pretty" order. */
reply = g_mime_message_new (0);
@@ -697,9 +696,7 @@ notmuch_reply_format_headers_only(void *ctx,
(void)add_recipients_from_message (reply, config, message, reply_all);
- reply_headers = g_mime_object_to_string (GMIME_OBJECT (reply));
- printf ("%s", reply_headers);
- free (reply_headers);
+ show_reply_headers (reply);
g_object_unref (G_OBJECT (reply));