<<< Date Index >>>     <<< Thread Index >>>

hook conflicts...



Hi everyone,

I would like to set my sig based on two criteria:

1) which foldre am I in?
2) who am I talking to?

So I want to put something like this in my .muttrc:

 
######################################### 
# setting my identity 
######################################### 
folder-hook . 'set signature=/home/matt/.mutt/sigs/signature_standard ; my_hdr 
From: Matt Price <matt.price@xxxxxxxxxxx>' 
folder-hook =.workstuff 'set signature=/home/matt/.mutt/sigs/signature_official 
; my_hdr From: Matthew Price <matt.price@utoronto.\
ca>' 
folder-hook .*family 'signature=/home/matt/.mutt/sigs/signature_family ; my_hdr 
From: Matt the Eldest <matt.price@xxxxxxxxxxx>' 


################################################### 
#send-hooks 
################################################### 
send-hook . 'unmy_hdr From: ;  set signature=.mutt/sigs/signature_standard' 
send-hook utoronto.ca 'set signature=.mutt/sigs/signature_official ; my_hdr 
From: Matthew Price <matt.price@xxxxxxxxxxx>' 
send-hook "~C^michelle\.murphy@utoronto\.ca" 'set 
signature=.mutt/sigs/signature_sweetie ; my_hdr From: Matt 
<matt.price@utoronto.\
ca>' 

------------------------------------------

sooo  2 problems:

the last send-hook doesn't work quite like I want it to:  I'd like to
use a special sig for my special someone, but ONLY if she's the only
one I'm talking to. Right now the ^ doesn't seem to do what I hoped, &
instead I get all mushy whenever I send a letter to her... and, say,
our department chair....  not what I want.  Hopefully someone sees
what's wrong?

more fundamentally:  the "send-hook ." line trumps the folder-hooks,
doesn't it?  At least so it seems to me.  So my folder-hooks are
useless.  Is there a way to modify things so this works approximately
like this:

IF a send-hook paplies, use it, 
ELSE IF folder-hook applies, use it,
ELSE use the default From: and signature settings

thx for the help,

Matt