X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-reply.c;h=46bab4344f7464f57f603040c13608e1a14459a9;hp=7f284229e38c02ff56e1c23433723b9470d8d9ab;hb=38dacf009c4feb5d4820bbdd9222d7e7be067903;hpb=bbe3015b3ea503b2834811f6cdd7276f9742faa1 diff --git a/notmuch-reply.c b/notmuch-reply.c index 7f284229..46bab434 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -591,7 +591,7 @@ create_reply_message(void *ctx, from_addr); g_mime_object_set_header (GMIME_OBJECT (reply), "From", from_addr, NULL); - subject = notmuch_message_get_header (message, "subject"); + subject = g_mime_message_get_subject (mime_message); if (subject) { if (strncasecmp (subject, "Re:", 3)) subject = talloc_asprintf (ctx, "Re: %s", subject); @@ -663,7 +663,9 @@ static int do_reply(notmuch_config_t *config, /* The headers of the reply message we've created */ sp->map_key (sp, "reply-headers"); - format_headers_sprinter (sp, reply, true); + /* FIXME: send msg_crypto here to avoid killing the + * subject line on reply to encrypted messages! */ + format_headers_sprinter (sp, reply, true, NULL); /* Start the original */ sp->map_key (sp, "original");