Re: send hook issues
On Sun, 2005-10-30 at 13:53:41 +0100, Alain Bench sent:
>Hi Pete,
>
Hi Alain,
> On Thursday, October 27, 2005 at 18:08:47 +0000, Pete Johns wrote:
>
>> send-hook "~A" "my_hdr From: Pete Johns <normal email
>> address>;\
>> set signature="~/.signature.sh|"; set sig_on_top=no; set\
>> sig_dashes=yes; set mime_forward=ask-yes"
>> send-hook "~t @mutt.org" "my_hdr From: Pete Johns <paj-mutt@...>"
>> send-hook "~t @vim.org" "my_hdr From: Pete Johns <paj-vim@...>"
> It's better to use $from/$realname as default sender, and to use
>"my_hdr From:" only in send-hooks to override it. Thus the default
>send-hook should better do a "unmy_hdr From:".
>
Thanks for the heads-up.
>BTW correcting a double quotes collision, and enhancing regexps,
>I'd suggest something as:
>
>| set realname="Pete Johns"
>| set from="normal email address"
>| send-hook . 'unmy_hdr From: ;\
>| set signature="~/.signature.sh|" ;\
>| set sig_on_top=no ;\
>| set sig_dashes=yes ;\
>| set mime_forward=ask-yes'
>| send-hook @mutt\\.org$ "my_hdr From: Pete Johns <paj-mutt@...>"
>| send-hook @vim\\.org$ "my_hdr From: Pete Johns <paj-vim@...>"
>
> Note those last hooks will match if you send TO or CC the list.
>
>
That's great, Alain! I have duly updated my .muttrc. It was
working fine previously, but I can see the advantages of the way
you have altered it.
Many thanks!
--paj
--
Pete Johns <http://johnsy.com/>
Tel/Fax numbers and IM information: <http://johnsy.com/contact/>
A Letter From NZ <http://johnsy.com/blog/?entry=20051026195500>