From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: Default for the envelope From in smtpmail.el Date: Sat, 11 Aug 2012 13:52:29 -0400 Message-ID: <1usjbt9uzm.fsf@fencepost.gnu.org> References: <0xwr16rzz5.fsf@fencepost.gnu.org> <83zk62c56n.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1344707556 15569 80.91.229.3 (11 Aug 2012 17:52:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2012 17:52:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 11 19:52:36 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 1T0FrX-0006iG-IZ for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2012 19:52:35 +0200 Original-Received: from localhost ([::1]:36191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0FrW-0008Cc-KZ for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2012 13:52:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0FrS-0008CB-Uw for emacs-devel@gnu.org; Sat, 11 Aug 2012 13:52:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0FrS-0007ZV-35 for emacs-devel@gnu.org; Sat, 11 Aug 2012 13:52:30 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:55228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0FrR-0007ZR-W7 for emacs-devel@gnu.org; Sat, 11 Aug 2012 13:52:30 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1T0FrR-0001r5-7R; Sat, 11 Aug 2012 13:52:29 -0400 X-Spook: subversive Afghanistan NWO radar BLU-97 A/B freedom X-Ran: h?Um4:|*`Duv"tq7,/OG*jwW\)w&P,^]-eM=W* X-Hue: magenta X-Attribution: GM In-Reply-To: <83zk62c56n.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 11 Aug 2012 09:29:20 +0300") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.10 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:152438 Archived-At: Eli Zaretskii wrote: > Sorry, I cannot figure this out, neither the nature of the problem nor > the details of the proposed solution. Can you spell that out? You are writing an email. The From: header has whatever value it has. Either it came from user-mail-address, or you edited it in the mail composition buffer to say what you wanted it to say. 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. At the moment, it effectively defaults to user-mail-address. If this is not the same as From:, you can get confusing failures to send the mail. If From: is the same as user-mail-address,, then the change has no impact on you. > In particular, is the proposal to stop using user-mail-address, or > stop using it in smtpmail.el only? No. > 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. Or maybe use 'From:' if it exists and fall > back on the existing machinery if not. The proposal is effectively: (setq mail-specify-envelope-from t mail-envelope-from 'header) If you look at the start of smtpmail-send-it, this would do what you suggest.