]> granicus.if.org Git - mutt/commitdiff
fix problem with reply-hook not working when a message/rfc822 attachment is selected
authorMichael Elkins <me@sigpipe.org>
Sat, 11 Sep 2010 14:34:26 +0000 (07:34 -0700)
committerMichael Elkins <me@sigpipe.org>
Sat, 11 Sep 2010 14:34:26 +0000 (07:34 -0700)
recvcmd.c

index 26c39d2b2c795f639ad9299ebe729efd946a2d04..4ae7d68609702681c52b5ab0623a145107241380 100644 (file)
--- a/recvcmd.c
+++ b/recvcmd.c
@@ -942,7 +942,8 @@ void mutt_attach_reply (FILE * fp, HEADER * hdr,
 
   safe_fclose (&tmpfp);
   
-  if (ci_send_message (flags, tmphdr, tmpbody, NULL, parent) == 0)
+  if (ci_send_message (flags, tmphdr, tmpbody, NULL,
+                         parent ? parent : (cur ? cur->hdr : NULL)) == 0)
     mutt_set_flag (Context, hdr, M_REPLIED, 1);
 }