Quoting Tim Kennedy <[EMAIL PROTECTED]> [Mar 26, 2002 12:33]:
> Sorry if this has been asked a lot.  I've been looking through
> the 'net, and various archives of various messages, for an
> answer to how I can get mutt to reply to emails using the "To"
> address, as the "From" address.
>
> my local account name is sugarat.  but I also get mail to
> "[EMAIL PROTECTED]".  When people send email to
> "[EMAIL PROTECTED]", I want to automatically use
> "[EMAIL PROTECTED]" as my From address in any replies.

I tried to figure out something similar a while ago, but as far
as I can tell, there is no way to set headers based on a message
you are relpying to.  A possible solution is a send-hook/macro
combination that sets the From: header:

  send-hook   .   'my_hdr From: me <[EMAIL PROTECTED]>'
  macro index \er 'my_hdr From: [EMAIL PROTECTED];<reply>'
  macro pager \er 'my_hdr From: [EMAIL PROTECTED];<reply>'

This sets the default From to "me <[EMAIL PROTECTED]>" (set this
to your real values, of course), and then, when you want to reply
to something sent to [EMAIL PROTECTED], do <esc>r instead of
just r.

This is untested, BTW, but I think it's basically sound.

(darren)

-- 
If it turns out that there is a God, I don't think that he's evil.
But the worst that you can say about him is that basically he's an
underachiever.
    -- Woody Allen

Reply via email to