problem with send-hooks
hi.
i've tried to set the From: header based on whom i send a email to
using send-hooks. what puzzels me that the hooks seams to work
partly, but not fully.
here is my (relevant) .muttrc:
+++
set from="Foo <foo@xxxxxxxxxxx>"
send-hook . \
set signature=.sig_foo; \
set from="Foo <foo@xxxxxxxxxxx>"
send-hook '~t "(user1|user2|user3)@.*"' \
set signature=.sig_bar; \
set from="Bar <bar@xxxxxxxxxxx>"
+++
when componing emails, the signature is correctly choosen, but the
From: header does always show "Bar <bar@xxxxxxxxxxx>". so, of some
reason does the regexp part work, but i can't understand why the
"set from=" part doesn't.
i've tried replacing "set from=" with "my_hdr From: ", switching
the order of "set sig..." and "set from", but that didn't help at
all...
reading the mutt manual didn't enlight me either.
btw, is running mutt 1.5.9i.
--
Per Carlson, Sr. Network Developer