]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-reply.c
cli/reply: pull proposed subject line from the message, not the index
[notmuch] / notmuch-reply.c
index 2689b2470c278b44662ac5fcaf7ad463165b1223..46bab4344f7464f57f603040c13608e1a14459a9 100644 (file)
@@ -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);