Le 17-03-2010, à 09:04:38 -0400, peng shao ([email protected]) a écrit :

> On Wed, Mar 17, 2010 at 4:52 AM, steve <[email protected]> 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: [email protected]
> > To: [email protected]
> >
> > (I don't have any special settings for [email protected])
> >
> > I hit 'r' and I get:
> >
> > From: [email protected]
> > To: [email protected]
> >
> >
> > but I would like to have:
> >
> > From: [email protected]
> > To: [email protected]
> >
> >
> > 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,

Hi Peng,

> I am not sure if I am correct but if you just simply want
> From: [email protected]
> To: [email protected]
> 
> Then simple
> 
> set envelope_from ="yes"
> set reverse_name=yes
> alternates "[email protected]|[email protected]"
> 
> should be enough.

well it's not here :-(

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

I put

reply-hook . 'unmy_hdr From:'
reply-hook '~t [email protected]' 'my_hdr From: [email protected]'

and it still doesn't work as expected...
 
> One thing more about the alternates: you should set your mta to be
> aware of [email protected]. 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.

I use esmtp and I don't have any information regarding my addresses.
Maybe that's the problem (but I doubt).

In any case, thank you for your help Peng.

Steve 

Reply via email to