all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: chad <yandros@MIT.EDU>
Cc: "emacs-devel@gnu.org discussions" <emacs-devel@gnu.org>
Subject: Re: Default for the envelope From in smtpmail.el
Date: Mon, 13 Aug 2012 12:43:17 +0900	[thread overview]
Message-ID: <87r4rbmp7u.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <79D4B58B-FFCA-42E0-AD13-48B1C0879ADC@mit.edu>

chad writes:

 > It's not a superset in the meaningful case; it's a subset - of the users.

Yes, it is, and no, it's not.  My mistake was elsewhere.

 > > That means that smtpmail.el should *default* to using the
 > > logged-in user's mailbox for the envelope sender.
 > 
 > This is a default that will be wrong the vast majority of the time.

Not at all.  `user-mail-address' is an inherited non-default setting
in my opinion.  My mistake was not explicitly acknowledging that your
opinion is different and at least as valid as mine.

 > The cases where a user's login name on an emacs-capable machine is the
 > same as a workable email address are a small minority,

Probably true.  Although I've never bothered on a personal GNU or BSD
system, since I've always been behind the relevant firewall where
relaying was open (not to mention that, until recently, so were
outgoing calls to port 25 :-( ).  I suppose a "sufficiently smart"
network security committee would prohibit both of those, though.  (Do
any of those exist?  But I digress....)

 > Conversely, user-mail-address has been used for decades,

And is the setting that is currently used by smtpmail.el according to
Glenn.  But he wants something else!  Glenn writes:

 >> To put it another way: if an email has a From: header, default to
 >> using that for the Envelope-From. I think the case of wanting to
 >> use something different is much less common, and should be the one
 >> that requires Emacs configuration.

That's what I was arguing against.  So in the end you and I are on the
same team, although I was way too fuzzy in my own head about where the
default mailbox needs to come from and how Emacs might find out what
it is.

 > If the user hasn't told emacs about an email address, then using the
 > login name is a reasonable choice. If the user *has* told emacs their
 > email address, emacs should use it.

And if the user decides to mess with From, he's on his own, at least
as far as Emacs proper is concerned.  No?

I suppose it would be possible to enhance user-mail-address to
something like user-mail-configurations, which would be a list of
lists like (ADDRESS FULLNAME LOGIN AUTHENTICATION EXTRA-HEADERS).  Of
course Gnus already supports this kind of thing (I forget the Gnus
name for the feature, as does VM ("personality crisis").

IIRC, Glenn was specifically referring to Gnus.  So if he rephrases
slightly to specify that MUA "personality" customizations should offer
this option and documentation explaining when it makes sense, I think
everybody would be happy.

In the long run, it might be nice if Emacs would offer this as part of
the compose-mail facility, and MUA packages would call back to
themselves (by default) through this facility.  Probably not going to
happen, though.



  reply	other threads:[~2012-08-13  3:43 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-05 15:16 Default for the envelope From in smtpmail.el Lars Magne Ingebrigtsen
2011-07-05 17:16 ` Eli Zaretskii
2011-07-05 19:40   ` Juanma Barranquero
2011-07-05 20:33     ` Eli Zaretskii
2011-07-06  1:30 ` Tim Cross
2012-08-11  1:15 ` Glenn Morris
2012-08-11  6:29   ` Eli Zaretskii
2012-08-11 17:52     ` Glenn Morris
2012-08-11 18:06       ` Glenn Morris
2012-08-12  0:21         ` Rasmus
2012-08-12  0:19       ` Stephen J. Turnbull
2012-08-12  0:42         ` chad
2012-08-12  2:08           ` Glenn Morris
2012-08-12  2:15             ` Glenn Morris
2012-08-12  3:06             ` chad
2012-08-12 15:02               ` Stephen J. Turnbull
2012-08-12 17:38                 ` chad
2012-08-13  3:43                   ` Stephen J. Turnbull [this message]
2012-09-04 13:13                     ` Nix
2012-09-05  1:30                       ` Stephen J. Turnbull
2012-09-05  9:14                         ` Nix
2012-09-04 15:49       ` Lars Ingebrigtsen
2012-09-04 16:01         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r4rbmp7u.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=yandros@MIT.EDU \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.