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

Re: problem with send-hooks



On Thu Mar 16 21:19:34 2006 +0000, Pete Johns wrote:

Here you want to unset the my_hdr From:

send-hook . 'unmy_hdr From: ;\
             set signature = ".sig_foo";'

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>'

thanks pete! it works as a charm now. still not sure why though...
i catch that the from header must be 'unset' in the default
send-hook, but do not understand why it was set to "Bar..." in the
first place. if it happened after sending a email to "user1..."
that's understandable, but it also happend just after starting
mutt and sending a email to "test". imho the from header wouldn't
be tainted with "From: Bar..." a that time...

anyway, i works now, and i'm perfectly happy with that :) if it
ain't broken, don't try to fix it...

--
Per Carlson, Sr. Network Developer