From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#29427: Problem sending emails in message-mode after restart Date: Sun, 26 Nov 2017 20:37:58 -0500 Message-ID: <1ga7z8v6vd.fsf@fencepost.gnu.org> References: <87o9npkqus.fsf@gmail.com> <87tvxgesww.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511746754 3936 195.159.176.226 (27 Nov 2017 01:39:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2017 01:39:14 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: "Basil L. Contovounesios" , Eric Abrahamsen , 29427@debbugs.gnu.org To: Emmanuel Boudreault Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 27 02:39:10 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 1eJ8Ny-0000AO-SV for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Nov 2017 02:39:02 +0100 Original-Received: from localhost ([::1]:58751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJ8O5-0001p5-Q2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Nov 2017 20:39:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJ8Nz-0001op-9i for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 20:39:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJ8Ny-000162-D7 for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 20:39:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJ8Ny-00015x-AB for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 20:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eJ8Nx-0005si-Uc for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 20:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Nov 2017 01:39: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.151174670922539 (code B ref 29427); Mon, 27 Nov 2017 01:39:01 +0000 Original-Received: (at 29427) by debbugs.gnu.org; 27 Nov 2017 01:38:29 +0000 Original-Received: from localhost ([127.0.0.1]:59817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJ8NR-0005rT-GI for submit@debbugs.gnu.org; Sun, 26 Nov 2017 20:38:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJ8NP-0005rF-SB for 29427@debbugs.gnu.org; Sun, 26 Nov 2017 20:38:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJ8NJ-0000xO-MK for 29427@debbugs.gnu.org; Sun, 26 Nov 2017 20:38:22 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJ8My-0000pb-00; Sun, 26 Nov 2017 20:38:00 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1eJ8Mw-000531-H8; Sun, 26 Nov 2017 20:37:58 -0500 X-Spook: Barrio Azteca Agfa Uzbekistan Hezbollah afsatcom Help X-Ran: ~2>?W_HlxXnGwW0jq#oToL/$0C'"_Plbjg5PYg-PkQ6?H]rSscGQjK;|Zg>4#z-i5W5~#_ X-Hue: blue X-Attribution: GM In-Reply-To: <87tvxgesww.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> (Emmanuel Boudreault's message of "Sun, 26 Nov 2017 20:33:51 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:140433 Archived-At: 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. (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.