Re: global case insensitivity on hooks
Michael
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.
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 ...
Thanks
--
- Eric Smith
Michael Elkins said:
> On Wed, Nov 14, 2007 at 11:21:52AM +0100, Eric Smith wrote:
> > For example, I have the following hook,
> > send-hook "~t `cat ~/recipients_list` " 'set signature=...
> >
> > And I want the matching of everything in the recipients_list file
> > to be case insensitive without having to specify each address in
> > the file with a regex.
>
> Save this script as ~/bin/hooks.sh:
>
> #!/usr/bin/env python
> for s in open('recipient_list'):
> print 'send-hook ~t "' + s.lower() + '" set signature...'
>
> In your ~/.muttrc:
>
> source '~/bin/hooks.sh|'
>
> (copied to http://wiki.mutt.org/?ConfigTricks)
>
> me