summaryrefslogtreecommitdiffstats
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-05-26 18:16:10 -0400
committerDavid Bremner <david@tethera.net>2019-05-29 08:17:33 -0300
commit1c704dd22d81b2d6307125d47cc895127f8e34c9 (patch)
tree9c32cc8af3062f8d4227b0725816e3364dde355f /notmuch-reply.c
parent06dedd0a8365ee4b71f730651e00b1098369f9b9 (diff)
cli/reply: pull proposed subject line from the message, not the index
Protected subject lines were being emitted in reply when the cleartext of documents was indexed. create_reply_message() was pulling the subject line from the index, rather than pulling it from the GMimeMessage object that it already has on hand. This one-line fix to notmuch-reply.c solves that problem, and doesn't cause any additional tests to fail. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r--notmuch-reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c
index 2689b247..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);