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

bug#1724: marked as done (mutt-1.5.1i-ja.1: cannot use ~h pattern match with reply-hook)



Your message dated Sun, 4 Jan 2004 10:55:48 +0100
with message-id <20040104095548.GA9799@xxxxxxxxxxxxxxxxxxxxxxxxxx>
and subject line bug#1724: mutt-1.5.1i-ja.1: cannot use ~h pattern match with 
reply-hook
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Herr der Kaefer
(administrator, GUUG bugs database)

--------------------------------------
Received: (at submit) by bugs.guug.de; 2 Dec 2003 12:28:43 +0000
>From netb@xxxxxxxxxxxxxxxxxxxxx Tue Dec 02 13:28:41 2003
Received: from ns.nara.kindai.ac.jp ([163.51.101.70] helo=ns.nara.kindai.ac.jp.)
        by trithemius.gnupg.org with esmtp (Exim 3.35 #1 (Debian))
        id 1AR9dw-00032p-00
        for <submit@xxxxxxxxxxxx>; Tue, 02 Dec 2003 13:28:40 +0100
Received: from ews08.nara.kindai.ac.jp. ([163.51.110.18])
        by ns.nara.kindai.ac.jp. (8.12.8/8.12.8) with ESMTP id hB2CHqqx019210
        for <submit@xxxxxxxxxxxx>; Tue, 2 Dec 2003 21:17:52 +0900 (JST)
Received: from ews07.nara.kindai.ac.jp (localhost [127.0.0.1])
        by ews08.nara.kindai.ac.jp. (8.12.8/8.12.8) with ESMTP id hB2CXAlf002298
        for <submit@xxxxxxxxxxxx>; Tue, 2 Dec 2003 21:33:10 +0900 (JST)
Received: from ibr1.irm.nara.kindai.ac.jp (ibr1.irm.nara.kindai.ac.jp 
[163.51.110.182])
        by ews07.nara.kindai.ac.jp (8.12.8/8.12.8) with ESMTP id hB2CDSii002441
        for <submit@xxxxxxxxxxxx>; Tue, 2 Dec 2003 21:13:29 +0900 (JST)
Received: from ibr3.irm.nara.kindai.ac.jp (ibr3.irm.nara.kindai.ac.jp 
[163.51.106.70])
        by ibr1.irm.nara.kindai.ac.jp (8.9.3/3.7W-irmsub) with ESMTP id VAA17450
        for <submit@xxxxxxxxxxxx>; Tue, 2 Dec 2003 21:31:31 +0900 (JST)
Received: by ibr3.irm.nara.kindai.ac.jp (8.12.0.Beta5/yubahub) id 
hB2CLNBR008286;
        Tue, 2 Dec 2003 21:21:23 +0900 (JST)
Date: Tue, 2 Dec 2003 21:21:23 +0900 (JST)
From: henry nelson <netb@xxxxxxxxxxxxxxxxxxxxx>
Message-Id: <200312021221.hB2CLNBR008286@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Organization: =?ISO-2022-JP?B?GyRCNmE1JkJnM1hHQDNYSXQbKEI=?= (Kinki U.)
Subject: mutt-1.5.1i-ja.1: cannot use ~h pattern match with reply-hook
To: submit@xxxxxxxxxxxx
MIME-Version: 1.0 (generated by MimeKit/1.8)
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by ns.nara.kindai.ac.jp. id 
hB2CHqqx019210
X-Spam-Status: No, hits=-5.4 required=5.0
        tests=BAYES_01
        version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

Package: mutt
Version: 1.5.1i-ja.1
Severity: normal

-- Please type your report below this line

I tried this line in .muttrc, in an attempt to match the From: header
with the language, but at start-up Mutt complains that it cannot be used
in this mode:

   '~h "(iso-2022-jp|euc-jp)"' my_hdr 'From: \"MyJaName\" <netb@xxxxxx>'


-- Build environment information

(Note: This is the build environment installed on the system
muttbug is run on.  Information may or may not match the environment
used to build mutt.)

- gcc version information
gcc
Using builtin specs.
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)

- CFLAGS
-Wall -pedantic -g -O2

-- Mutt Version Information

Mutt 1.5.1i-ja.1 (2002-05-02)
Copyright (C) 1996-2001 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: NetBSD 1.4.3_ALPHA (i386) [using slang 10406] [using libiconv 1.6=
]
=1B$B%3%s%Q%$%k;~%*%W%7%g%s=1B(B:
-DOMAIN
-DEBUG
-HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -DL_STANDALONE =20
+USE_FCNTL  -USE_FLOCK
-USE_POP  -USE_IMAP  -USE_GSS  -USE_SSL  -USE_SASL =20
+HAVE_REGCOMP  -USE_GNU_REGEX =20
+HAVE_COLOR  -HAVE_START_COLOR  -HAVE_TYPEAHEAD  -HAVE_BKGDSET =20
-HAVE_CURS_SET  -HAVE_META  -HAVE_RESIZETERM =20
+HAVE_PGP  +HAVE_SMIME  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT =20
+ENABLE_NLS  -LOCALES_HACK  -HAVE_WC_FUNCS  -HAVE_LANGINFO_CODESET  +HAVE=
_LANGINFO_YESEXPR =20
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  -HAVE_GETADDRINFO =20
ISPELL=3D"/usr/local/bin/ispell"
SENDMAIL=3D"/usr/sbin/sendmail"
MAILPATH=3D"/var/mail"
PKGDATADIR=3D"/usr/local/share/mutt"
SYSCONFDIR=3D"/usr/local/etc"
EXECSHELL=3D"/bin/sh"
-MIXMASTER
=1B$B3+H/<T=1B(B(=1B$BK\2H=1B(B)=1B$B$KO"Mm$r$H$k$K$O=1B(B <mutt-dev@mutt=
.org> =1B$B$X%a!<%k$;$h!#=1B(B
=1B$B%P%0$r%l%]!<%H$9$k$K$O=1B(B flea (1) =1B$B%f!<%F%#%j%F%#$r;HMQ$;$h!#=
=1B(B
=1B$BF|K\8lHG$N%P%0%l%]!<%H$*$h$SO"Mm$O=1B(B mutt-j ML =1B$B$X!#=1B(B

error reading tmp file %s=1B)B=1B$B2x=1B(BU=1B$B2g&n=1B(B=08WVS=1B$B5V=1B=
(B=08=1B$B*x=1B(B~=08;5|=1B$B%&=1B(B~=0C=1B$B%/=1B(Bv=1B$)B=1B$Br?=1B(B=1B=
)B=1B$B2x=1B(B=80=3D8=1B$B%$=1B(Bt=1B$B!#=1B(BL=1B$B%(=1B(B=8B=04=1B$)B=1B=
$B!<=1B(B=E9=1B)B=1B$B!%2x=1B(B=8B=1D=1B$B%(2r=1B(B=99=1B$)B=1B$Bw{=1B(B=1B=
)B=1B$B2Y2r=1B(B)=1B$Bx9=1B(B=05=1B$B05=1B(Bu=0B1=1B$)B=1B$Bv;=1B(BT=1B$B=
%(uV=1B(B=1B)B=1B$B2x=1B(B9=05=1B$B85=1B(Bu=0C=1B$B%;=1B(B=04=1B$B%5=1B(B=
T=1B$)B=1B$B%(u@=1B(B=1B)B=1B$B5.=1B(B=0C=8D4=1B$B9i+h%&=1B(Bj=99=1B$)B=1B=
$Bw{A`=1B(B
patch-1.5.1.tt.ja.1

--- Begin /usr/local/etc/Muttrc
ignore "from " received content- mime-version status x-status message-id
ignore sender references return-path lines
macro index \eb '/~b ' 'search in message bodies'
macro index \cb |urlview\n 'call urlview to extract URLs out of a message=
'
macro pager \cb |urlview\n 'call urlview to extract URLs out of a message=
'
macro generic <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt do=
cumentation"
macro index   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt do=
cumentation"
macro pager   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt do=
cumentation"
--- End /usr/local/etc/Muttrc


---------------------------------------
Received: (at 1724-done) by bugs.guug.de; 4 Jan 2004 09:53:28 +0000
>From roessler+bounce@xxxxxxxxxxxxxxxxxx Sun Jan 04 10:53:26 2004
Received: from does-not-exist.info ([217.160.221.198] 
helo=kamino.does-not-exist.org)
        by trithemius.gnupg.org with esmtp (Exim 3.35 #1 (Debian))
        id 1Ad4wo-0003C9-00
        for <1724-done@xxxxxxxxxxxx>; Sun, 04 Jan 2004 10:53:26 +0100
Received: from voyager.does-not-exist.org (p3E9B9DFA.dip0.t-ipconnect.de 
[62.155.157.250])
        (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
        (No client certificate requested)
        by kamino.does-not-exist.org (Postfix) with ESMTP
        id 326043140D5; Sun,  4 Jan 2004 10:56:06 +0100 (CET)
Received: by voyager.does-not-exist.org (Postfix, from userid 500)
        id C6E968076; Sun,  4 Jan 2004 10:55:48 +0100 (CET)
Date: Sun, 4 Jan 2004 10:55:48 +0100
From: Thomas Roessler <roessler@xxxxxxxxxxxxxxxxxx>
To: Michael Elkins <me@xxxxxxxxxxx>, 1724-done@xxxxxxxxxxxx
Cc: henry nelson <netb@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: bug#1724: mutt-1.5.1i-ja.1: cannot use ~h pattern match with 
reply-hook
Message-ID: <20040104095548.GA9799@xxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <200312021221.hB2CLNBR008286@xxxxxxxxxxxxxxxxxxxxxxxxxx> 
<20031218024642.GA8575@xxxxxxxxxxxxxxxxx>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20031218024642.GA8575@xxxxxxxxxxxxxxxxx>
User-Agent: Mutt/1.5.5.1i
X-Spam-Status: No, hits=-108.9 required=4.0
        tests=AWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,
              REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT,
              USER_IN_WHITELIST
        autolearn=ham version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

Thanks.  Committed to the CVS.

On 2003-12-17 18:46:43 -0800, Michael Elkins wrote:
> From: Michael Elkins <me@xxxxxxxxxxx>
> To: henry nelson <netb@xxxxxxxxxxxxxxxxxxxxx>, 1724@xxxxxxxxxxxx
> Date: Wed, 17 Dec 2003 18:46:43 -0800
> Subject: bug#1724: mutt-1.5.1i-ja.1: cannot use ~h pattern match with 
> reply-hook
> Reply-To: Michael Elkins <me@xxxxxxxxxxx>, 1724@xxxxxxxxxxxx
> X-Spam-Level: 
> 
> On 2003-12-02, henry nelson wrote:
> > I tried this line in .muttrc, in an attempt to match the From: header
> > with the language, but at start-up Mutt complains that it cannot be used
> > in this mode:
> > 
> >    '~h "(iso-2022-jp|euc-jp)"' my_hdr 'From: \"MyJaName\" <netb@xxxxxx>'
> 
> The attached patch should fix the problem.

> Index: hook.c
> ===================================================================
> RCS file: /home/roessler/cvs/mutt/hook.c,v
> retrieving revision 3.7
> diff -u -r3.7 hook.c
> --- hook.c    21 Jan 2003 12:33:41 -0000      3.7
> +++ hook.c    18 Dec 2003 02:42:18 -0000
> @@ -149,7 +149,7 @@
>    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;
>    }
> Index: send.c
> ===================================================================
> RCS file: /home/roessler/cvs/mutt/send.c,v
> retrieving revision 3.27
> diff -u -r3.27 send.c
> --- send.c    9 Nov 2003 09:38:32 -0000       3.27
> +++ send.c    18 Dec 2003 02:42:19 -0000
> @@ -1194,7 +1194,7 @@
>      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


-- 
Thomas Roessler                       <roessler@xxxxxxxxxxxxxxxxxx>