[PATCH] fix problem with reply-hook not working when a message/rfc822 attachment is selected
- To: mutt-dev@xxxxxxxx
- Subject: [PATCH] fix problem with reply-hook not working when a message/rfc822 attachment is selected
- From: Michael Elkins <me@xxxxxxxxxxx>
- Date: Tue, 25 May 2010 10:15:01 -0700
- List-post: <mailto:mutt-dev@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-dev"
- Sender: owner-mutt-dev@xxxxxxxx
- User-agent: Mercurial-patchbomb/1.5.1
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);
}