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

Re: Setting default from address according to recipients



* On Mon, Sep 25, 2006 Matthew R. Dempsky (mrd@xxxxxxxxxxx) muttered:
> 
>     send-hook '~t @utdallas\.edu$ !~t ^utdlug@utdallas\.edu$' 'set 
> from=matthew.dempsky@xxxxxxxxxxxxxxxxxxxx'
> 
> However, it doesn't behave how I was hoping.  It instead changes my
> from address for all *future* messages.

In send-hooks you need to use »my_hdr From:« because as you noted $from
comes too late for the current message.

HTH,

Michael
-- 
...Deep Hack Mode -- that mysterious and frightening state of
consciousness where Mortal Users fear to tread.
                -- Matt Welsh

PGP-Key-ID: 0xDC1A44DD
Jabber:     init[0]@amessage.de