From: Michael Elkins Date: Sun, 4 Jan 2004 09:52:55 +0000 (+0000) Subject: Fix #1724, cannot use ~h pattern match with reply-hook. X-Git-Tag: mutt-1-5-6-rel~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea5b411fa83c331710723f218a8f4fefd3883fcc;p=mutt Fix #1724, cannot use ~h pattern match with reply-hook. --- diff --git a/hook.c b/hook.c index 175e08e8..d7931c02 100644 --- a/hook.c +++ b/hook.c @@ -149,7 +149,7 @@ int mutt_parse_hook (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) if (data & (M_SENDHOOK | M_SAVEHOOK | M_FCCHOOK | M_MESSAGEHOOK | M_REPLYHOOK)) { if ((pat = mutt_pattern_comp (pattern.data, - (data & (M_SENDHOOK | M_REPLYHOOK | M_FCCHOOK)) ? 0 : M_FULL_MSG, + (data & (M_SENDHOOK | M_FCCHOOK)) ? 0 : M_FULL_MSG, err)) == NULL) goto error; } diff --git a/send.c b/send.c index e9e965fc..b2d7c3c2 100644 --- a/send.c +++ b/send.c @@ -1194,7 +1194,7 @@ ci_send_message (int flags, /* send mode */ if ((flags & SENDREPLY) && cur) { /* change setting based upon message we are replying to */ - mutt_message_hook (NULL, cur, M_REPLYHOOK); + mutt_message_hook (ctx, cur, M_REPLYHOOK); /* * set the replied flag for the message we are generating so that the