]> granicus.if.org Git - mutt/commitdiff
Fix #1724, cannot use ~h pattern match with reply-hook.
authorMichael Elkins <me@sigpipe.org>
Sun, 4 Jan 2004 09:52:55 +0000 (09:52 +0000)
committerMichael Elkins <me@sigpipe.org>
Sun, 4 Jan 2004 09:52:55 +0000 (09:52 +0000)
hook.c
send.c

diff --git a/hook.c b/hook.c
index 175e08e80cbae0912e1d2f7a13e9bba2bacc27f8..d7931c02dce4ba61539494bbb4125998f03ca5a0 100644 (file)
--- 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 e9e965fc7998fc6913c756415ec625b3e2d129e9..b2d7c3c244c0cc3c78aac606c209c50a02df5192 100644 (file)
--- 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