From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Default for the envelope From in smtpmail.el Date: Sun, 12 Aug 2012 09:19:12 +0900 Message-ID: <87628pj727.fsf@uwakimon.sk.tsukuba.ac.jp> References: <0xwr16rzz5.fsf@fencepost.gnu.org> <83zk62c56n.fsf@gnu.org> <1usjbt9uzm.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: dough.gmane.org 1344730799 3209 80.91.229.3 (12 Aug 2012 00:19:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2012 00:19:59 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 12 02:19:57 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T0Lu5-0003yF-Av for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2012 02:19:37 +0200 Original-Received: from localhost ([::1]:52131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0Lu4-0002Ov-7H for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2012 20:19:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0Lu2-0002NF-9J for emacs-devel@gnu.org; Sat, 11 Aug 2012 20:19:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0Lu0-0001sS-74 for emacs-devel@gnu.org; Sat, 11 Aug 2012 20:19:34 -0400 Original-Received: from mgmt2.sk.tsukuba.ac.jp ([130.158.97.224]:51190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0Ltz-0001rn-TV for emacs-devel@gnu.org; Sat, 11 Aug 2012 20:19:32 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt2.sk.tsukuba.ac.jp (Postfix) with ESMTP id 9FD1897089E; Sun, 12 Aug 2012 09:19:12 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 6292D11F88A; Sun, 12 Aug 2012 09:19:12 +0900 (JST) In-Reply-To: <1usjbt9uzm.fsf@fencepost.gnu.org> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta31) "ginger" b4715fcbe001 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.224 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152442 Archived-At: Glenn Morris writes: > Now you send it. The envelope from address (which is used eg for the > MAIL FROM command sent to the stmp server) should default to whatever > was in the From: header. This is a bad idea. Emacs should set the envelope address only on specific request from the user. Provide an easily customized option, yes. Default, no. The default is to let the MTA figure it out. Users who change the From address had better know what they are doing. > At the moment, it effectively defaults to user-mail-address. Don't you have this backward? The envelope address is set by the MTA, which defaults to using the mailbox of the logged-in user. This corresponds to user-mail-address because user-mail-address defaults to the same value. (I don't know or care what smtpmail.el currently does, but here it is functioning as an MTA.) Note that on some systems unprivileged users using the system MTA may not be able to set the envelope address at all. > > If the proposal is for not using it only in smtpmail.el, then we need > > to verify that there are no valid use cases without a 'From:' header > > in the current buffer. A mail message must have a From field to conform to RFC 5322 (see table on p. 20 of that RFC). Steve