Ville Skyttä <ville.skytta(a)xemacs.org> writes:
On Sat, 2002-03-16 at 00:59, Robert Pluim wrote:
> Simon Josefsson writes:
> > Ville Skyttä <ville.skytta(a)xemacs.org> writes:
> >
> > > Thought it would be useful to check the REPLYTO environment variable
> > > when finding user-mail-address.
> >
> > I don't agree -- trn, elm, etc use the REPLYTO environment variable to
> > populate the Reply-To: header, and this is also how sendmail.el
> > already behaves. I haven't seen it being used to populate the From:
> > address, and isn't `user-mail-address' used for other things
> > (anonymous ftp address, changelog entries etc) as well? It doesn't
> > seem like the right thing.
> >
> > What do you think?
>
> There are good reasons why the two headers are distinct. Some people
> have situations that force a particular From header, but have liberty
> in setting the Reply-To (I used to have this). I don't think
> populating user-mail-address from REPLYTO would be a good idea.
Well, I must agree. I tried to find an "standard" env variable that
would be used to tell the _sender_ address and REPLYTO was the closest
one I found. Why? Because I think "user-login-name@system-name" too
often produces addresses that cannot be used for mail delivery.
If there is a "standard" env var that is used for a sender address,
please let me know... I guess that could be used for populating
user-mail-address instead of REPLYTO.
A little googling reveals FROM. However, I'm not sure if any of these
is commonly used at all. And wouldn't it be breaking the unix culture
if you didn't need to configure your email address into each and every
application you use? :-)
The situation is bad, of course, but the least worse solution I can
think of is making XEmacs a proper Gnome and KDE application, then it
could get your email address from Gnome/KDE. Doesn't work for
Windows, CDE, tty etc though.
OTOH, calling user-mail-address SHOULD query the user for the email
address if it isn't known, and save it for future uses, so what is the
problem? Doesn't it work?