Thorsten Haude muttered:
> I have this line in my mutt.rc
>       send-hook '~t [EMAIL PROTECTED]' 'set [EMAIL PROTECTED]'
> 
> However, this hook seems to catch too late, i.e. I see the result of
> every hook of this kind only in the mail *after* the one the hook is
> made for.

That's  because $from is changed just at the time to send the mail out.
And that is what send-hook is all about isn't it?
$from had the old value when you composed it. The next mail you send
honers the new $from setting.

set realname="Thorsten Haude"
set from="[EMAIL PROTECTED]"
set use_from 
set envelope_from

send-hook . 'unmy_hdr From:'
send-hook '~t [EMAIL PROTECTED]' 'my_hdr From: Thorsten Haude <[EMAIL PROTECTED]>'

The above should do what you want.

HTH,

Michael
-- 

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key

Reply via email to