<<< Date Index >>>     <<< Thread Index >>>

[PATCH] fix problem with reply-hook not working when a message/rfc822 attachment is selected



 recvcmd.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


# HG changeset patch
# User Michael Elkins <me@xxxxxxxx>
# Date 1274807689 25200
# Branch HEAD
# Node ID 4d306b8e4f97738744a1fe6df7193475f7c47dc2
# Parent  29e37994a536a54e75539c5616fe4110198bfed8
fix problem with reply-hook not working when a message/rfc822 attachment is 
selected

diff --git a/recvcmd.c b/recvcmd.c
--- a/recvcmd.c
+++ b/recvcmd.c
@@ -942,7 +942,8 @@
 
   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);
 }