Re: Setting From header based on To header

2020-02-18 Thread Jens Mueller
Kevin J. McCarthy wrote:
> On Tue, Feb 18, 2020 at 10:47:31PM +0100, Jens Mueller wrote:
> > I was looking for a way to set the From header based on the To header
> > when replying in mutt.
>
> Check out $reverse_name and also $reverse_realname.  It requires the To or
> Cc address to match an entry in your alternates list.

This works. Thank you very much. I missed it somehow when searching the
manual.

Jens


Re: Setting From header based on To header

2020-02-18 Thread Kevin J. McCarthy

On Tue, Feb 18, 2020 at 10:47:31PM +0100, Jens Mueller wrote:
I was looking for a way to set the From header based on the To header 
when replying in mutt.


Check out $reverse_name and also $reverse_realname.  It requires the To 
or Cc address to match an entry in your alternates list.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Setting From header based on To header

2020-02-18 Thread Jens Mueller
Hi,

I have a mail account with aliased mail addresses, i.e., mails sent to
me.someth...@example.com, me.somethinge...@example.com, etc. are
delivered to m...@example.com. The To header indicates which alias an
email was sent to, e.g, me.someth...@example.com.
I was looking for a way to set the From header based on the To header
when replying in mutt. This way I could set From to
me.someth...@example.com when To was me.someth...@example.com.
But I couldn't find a way to achieve this when reading on the various
configuration settings regarding the From header. How could one approach
this?
Currently I edit the From header manually when composing the reply
message.

Jens