From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#36937: 26.1; Sending mails doesn't set From: correctly Date: Tue, 06 Aug 2019 03:32:55 -0400 Message-ID: References: <87pnljijap.fsf@gnus.jao.io> <87y307xuo6.fsf@turtle.gmx.de> <87ftmeydjc.fsf@turtle.gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="181032"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: "Jose A. Ortega Ruiz" , 36937@debbugs.gnu.org To: Sven Joachim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 06 09:34:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hutyz-000kzL-OD for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Aug 2019 09:34:09 +0200 Original-Received: from localhost ([::1]:59496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hutyy-0007cv-2X for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Aug 2019 03:34:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43654) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hutyu-0007ck-8Z for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2019 03:34:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hutyt-0005aC-8v for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2019 03:34:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55804) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hutyt-0005Zy-5g for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2019 03:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hutyt-0005wG-1y for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2019 03:34:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Aug 2019 07:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36937 X-GNU-PR-Package: emacs Original-Received: via spool by 36937-submit@debbugs.gnu.org id=B36937.156507678722762 (code B ref 36937); Tue, 06 Aug 2019 07:34:03 +0000 Original-Received: (at 36937) by debbugs.gnu.org; 6 Aug 2019 07:33:07 +0000 Original-Received: from localhost ([127.0.0.1]:36392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hutxy-0005v4-M9 for submit@debbugs.gnu.org; Tue, 06 Aug 2019 03:33:06 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hutxw-0005ub-Ri for 36937@debbugs.gnu.org; Tue, 06 Aug 2019 03:33:05 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7443A445E78; Tue, 6 Aug 2019 03:32:59 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 3368F445E74; Tue, 6 Aug 2019 03:32:57 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1565076777; bh=TFGD9YwdWRAL6tDIiEpo+9i6uFiWY9Mf3p7LkuRkjdQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=gormf1OlZNr2udhv/CPvNCx5xPcLMpfHEN+OJe6p8b9gtlxSNhCktw7xfnMjHEGqb a4Zqix6zAkD2JTeZay2VEAobnmNdl9wHmWLY8Q9EDCFzjiL02hUUHYj77Dg1xFi1bn LM7hFuE0jtpbx++5YLQV+SacrVRfimeJwlPsnqQl98rXnLSW6ESAqqiQlgxhsXj+na lOfkKoZ+0WCnmMOB1RCK6uluzp+GCGo2j2H2MSvszDbVLstSz2fnN/r81O0eaFgzzs 6Psk9zuYidy2gM+wohSEKtVe2tmeTx15C6BEV6vkYXXzUGrN8zKj6i811AKP1AXFwj 4Y/yC6DJEHdoQ== Original-Received: from alfajor (unknown [78.192.50.77]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9423E120F28; Tue, 6 Aug 2019 03:32:56 -0400 (EDT) In-Reply-To: <87ftmeydjc.fsf@turtle.gmx.de> (Sven Joachim's message of "Tue, 06 Aug 2019 09:10:47 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164670 Archived-At: >>> This problem started happening in builds from master around 4 days ago: >>> >>> - start emacs -Q >>> - M-x mail (or any other form of sending email) >>> - Set a From: value different from user@localhostname >>> - Send mail using local sendmail >>> >>> The mail is sent with a from header seen by postfix (i don't know about >>> other MTAs) as user@localhost, instead of the From: i set in the >>> headers. By user@localhost i mean the unix username running emacs and >>> the hostname as returned by hostname(1). It seems emacs is just >>> ignoring the value of From:, or setting it in a way postfix doesn't >>> understand. >>> >>> I know almost for sure it's an emacs problem because emacs 26 or an >>> earlier version of emacs-snapshot is working without problems. >> >> Confirmed here, although it did not prevent me personally from sending >> mail, since I had already set up postfix to rewrite such >> user@localhostname addresses back. >> >> Reverting commit 3a59cc840693 (" * lisp/gnus/message.el: Reduce >> redundancy with send-mail-function") fixed the problem. It looks like >> this commit changed some important options and looks NEWS-worthy. > > Most notably, it changed the default of message-sendmail-f-is-evil, > which is now t. Indeed, I aligned it with mail-specify-envelope-from. I guess I should revert this part. But I'm still perplexed: `M-x mail` shouldn't pay any attention to message-sendmail-f-is-evil when sending the message. Stefan