On 2009-11-23, Nicolas KOWALSKI <[email protected]> wrote:
> On Mon, Nov 23, 2009 at 10:01:09AM +1100, Cameron Simpson wrote:
> > There's no whitespace before the colon in the above pattern, so it
> > won't match "RE :".
> >
> > Try:
> > set reply_regexp="^((re([\[^-][0-9]+\]?)*|aw|antwort|antw|wg)[ \t]*:[
> > \t]*)+"
> >
> > You can see I've added "[ \t]*" before the colon.
>
> Thanks for your reply.
>
> I just tried, and it is still not working; this is quite puzzling...
>
> Well, I just saved the raw message, and when here is what's in the start
> of the subject header:
>
> Subject: =?ISO-8859-1?Q?RE_=3A_
>
> This would explain why the regexp never matches. But now, how to make it
> match this encoded string?
That shouldn't matter. Mutt decodes that string before applying the
'reply_regexp'. I just created a message with this Subject,
Subject: =?ISO-8859-1?Q?RE_=3A_?=
changed my 'reply_regexp' by adding "[ \t]*" before the color per
Cameron's suggestion, and replied to it. Mutt removed the "RE :"
and replaced it with "Re: ", as it should.
Regards,
Gary