Re: global case insensitivity on hooks
On Wed, Nov 14, 2007 at 05:35:58PM +0100, Eric Smith wrote:
> To my understanding,
> this makes every address listed in the recipients_list lowercase
> but does not solve the problem that in the email header, the
> address might have unpredictable case.
>
> So I want the recipe to match any case in the header.
As Paul pointed out, Mutt uses case insensitive matches if the regular
expression contains no uppercase characters.
> Also, I should have added that my hook is compound viz:
> send-hook "~t `cat ~/recipients_trustfood` ~C (^CHL......@\\|.*\>cl)" 'set
> signature="cat signature_chile ...
You can either modify my example script, or you can write your own that
lowercases all the strings and makes a regular expression out of them so
you can use it in a single hook.
me