Re: Adding reply-to option to mailutils.conf instead of -r on command line

"Sergey Poznyakoff" <[email protected]> Wed, 27 Oct 2021 09:18:54 +0200
Newsgroups gmane.comp.gnu.mailutils.bugs
Organization GNU.org.ua
Message-ID <[email protected]>
Hi Simon,

> If I need to send an email from home computer I have to remember to
> include the -r flag to use a proper domain instead of me@home-computer,
> which is quite annoying.

Not necessarily.  You can set the return-address variable in your
~/.mailrc file, like that:

  set return-address="[email protected]"

See

https://mailutils.org/manual/html_node/Mail-Variables.html#return_002daddress

> So, I thought this would work fine:
> 
> address { 
> email-addr [email protected]; 
> email-domain "simonh.uk";
> };

Quite right.  That should give the same result.

> But mail keeps being me@home-computer and going to spam.

The most probable reason is that you edited wrong file.  Run the
following command to see whether mail reads the proper file and
interprets it correctly:

  mail --config-lint --config-verbose

Regards,
Sergey