From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#29427: Problem sending emails in message-mode after restart Date: Mon, 27 Nov 2017 15:08:45 -0800 Message-ID: <87609v720y.fsf@ericabrahamsen.net> References: <87o9npkqus.fsf@gmail.com> <87tvxgesww.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> <1ga7z8v6vd.fsf@fencepost.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511824272 2379 195.159.176.226 (27 Nov 2017 23:11:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2017 23:11:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: "Basil L. Contovounesios" , 29427@debbugs.gnu.org, Emmanuel Boudreault To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 28 00:11:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJSYL-0008Ve-AE for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Nov 2017 00:11:05 +0100 Original-Received: from localhost ([::1]:35195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJSYR-00049q-6w for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Nov 2017 18:11:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJSYL-00048X-C9 for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 18:11:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJSYI-0000qQ-4z for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 18:11:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52745) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJSYI-0000qL-0l for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 18:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eJSYH-0003o7-O8 for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 18:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Nov 2017 23:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29427 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29427-submit@debbugs.gnu.org id=B29427.151182423614601 (code B ref 29427); Mon, 27 Nov 2017 23:11:01 +0000 Original-Received: (at 29427) by debbugs.gnu.org; 27 Nov 2017 23:10:36 +0000 Original-Received: from localhost ([127.0.0.1]:33193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJSXr-0003nQ-WA for submit@debbugs.gnu.org; Mon, 27 Nov 2017 18:10:36 -0500 Original-Received: from mail.ericabrahamsen.net ([50.56.99.223]:45097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJSXq-0003nI-EA for 29427@debbugs.gnu.org; Mon, 27 Nov 2017 18:10:34 -0500 Original-Received: from localhost (D-173-250-255-12.dhcp4.washington.edu [173.250.255.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id EDC12C0298; Mon, 27 Nov 2017 23:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1511824233; bh=MYNt/FnH4LKhUYCb450MkfWHePUzBGdkDYyXH9AfOq8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=UBvWaMgfiFhXNqu7fUxfhQOEaq3satn3ENktlAgoNBwj3gUAXC6VWwzA81aifmRoU 3T1i+rQVABPLCsmSDnBxOvmuWmRI29is8SbJwiYXjHny5Mu+cAwE66/LZn2ywH+yZn rv4AEZEPAGeqCgAEzYzX/Jq9s0nrajrPewhkQfxE= In-Reply-To: <1ga7z8v6vd.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 26 Nov 2017 20:37:58 -0500") 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: 208.118.235.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:140474 Archived-At: On 11/26/17 20:37 PM, Glenn Morris wrote: > Emmanuel Boudreault wrote: > >> By setting 'message-sendmail-f-is-evil', I can bypass this bit of code >> and everything works as expected. However, this is just a workaround >> and doesn't correct the fact that emacs is reading the From field >> incorrectly. > > So basically your issue is that your envelope-from isn't being set > correctly, because your system doesn't have a configured mail-host-address. I still think the simplest solution would be to set `user-mail-address'. It's a reasonable thing to have set globally, and once it's set everything else can be ignored. > (setq message-sendmail-envelope-from 'header) > > would presumably fix your problem as well, and might be a more sensible > default these days. > > Related observations: > > sendmail-send-it (which is what you selected by choosing "transport") > doesn't pass -f to sendmail by default. However, message.el uses its own > message-send-mail-with-sendmail instead, and this does pass -f by > default. This seems like a confusing difference, as well as a confusing > duplication of code (but that's message.el for you). > > I would guess that you got sendmail-send-it the first time, then > message-send-mail-with-sendmail on all future invocations, owing to how > the variable message-send-mail-function gets initialized. > > It all seems Very Complicated. That's an understatement...