On Wed, Mar 17, 2010 at 4:52 AM, steve <dl...@bluewin.ch> wrote:
> Hi mutt-users,
>
> I have several addresses and when someone I don't know sends me an email,
> this one goes in my inbox (procmail default). Now if I hit 'r', the From
> header will be automaticaly set to my default email, which is sometimes
> not the preferred behaviour, I would like to use the email address the
> sender used. For example:
>
> I receive an email with:
>
> From: a...@example.com
> To: m...@foo.bar
>
> (I don't have any special settings for a...@example.com)
>
> I hit 'r' and I get:
>
> From: defa...@email.bar
> To: a...@example.com
>
>
> but I would like to have:
>
> From: m...@foo.bar
> To: a...@example.com
>
>
> How can I do this? Should I use a reply-hook? reverse_name? I'm a bit
> confused here.
>
> Many thanks in advance for your help.
>
> steve
>

Hi, I am not sure if I am correct but if you just simply want
From: m...@foo.bar
To: a...@example.com

Then simple

set envelope_from ="yes"
set reverse_name=yes
alternates "m...@foo.bar|defa...@email.bar"

should be enough. But usually this is not the good way because you
surely don't want your realname, signature to be identical to default
in general. So I would suggest you to use reply-hook. Notice don't
forget to set default reply-hook at first.

One thing more about the alternates: you should set your mta to be
aware of m...@foo.bar. I have only had experience on msmtp and if
m...@foobar is not an independent accout in msmtprc then msmtp will use
the default account in msmtp to send the mail out.

Peng

Reply via email to