Re: problem with send-hooks
On Wed, 2006-03-15 at 15:33:07 +0100, Per Carlson sent:
>hi.
>
Hi Per,
>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.
>
I do something very similar myself and had the same problem until
someone on this mailing list helped me out.
>here is my (relevant) .muttrc:
>
>+++
>
>set from="Foo <foo@xxxxxxxxxxx>"
>
>
This is the correct way of setting the 'From:' line.
>send-hook . \
> set signature=.sig_foo; \
> set from="Foo <foo@xxxxxxxxxxx>"
>
Here you want to unset the my_hdr From:
send-hook . 'unmy_hdr From: ;\
set signature = ".sig_foo";'
>send-hook '~t "(user1|user2|user3)@.*"' \
> set signature=.sig_bar; \
> set from="Bar <bar@xxxxxxxxxxx>"
>
This is where you set the my_hdr From:
send-hook '~t "(user1|user2|user3)@.*"' \
set signature=.sig_bar; \
my_hdr From: Bar <bar@xxxxxxxxxxx>'
Hope this helps;
--paj
--
Pete Johns <http://johnsy.com/>
Tel/Fax numbers and IM information: <http://johnsy.com/contact/>
Day One <http://johnsy.com/blog/?entry=20060314092037>