Re: send-hook my_hdr unknown variable
On 10/08/07 15:08, shen xiaofei wrote:
> Hello,Joseph <syscon@xxxxxxxxxxxxx>!
>
> * You wrote on Sun, Oct 07, 2007 at 11:15:29PM -0600:
> > Is there a limit how many variable I can assign to a hook?
> > I have below:
> >
> > send-hook . 'unmy_hdr From:'
> > send-hook '~t ^xxxx@xxxxxxxxx' 'set signature=~/.mutt/signature-personal'
> > 'my_hdr From: Joseph <xxxxx@xxxxxxxxxxxx>
> >
> > The signature part is working but my_hdr gives me "unknown variable"
> > when I try to compose a message.
>
> This works for me:
> send-hook . 'my_hdr from:shen xiaofei<shen@xxxxxxxx>;set
> signature="~/.mutt/signature"'
> send-hook '! ~t .*' 'my_hdr from:bugip <bugip@xxxxxxx>;set signature='';set
> record='''
> send-hook ~l 'set signature='''
BINGO!
So it is a semicolon ";" that need to be between the pattersns.
Thank you, golden information!
--
#Zbyszek
GPG KeyID: ED0E1FB7