From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emmanuel Boudreault Newsgroups: gmane.emacs.bugs Subject: bug#29427: Problem sending emails in message-mode after restart Date: Fri, 24 Nov 2017 17:09:10 +0100 Message-ID: <87lgivfyl5.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 1511544918 24625 195.159.176.226 (24 Nov 2017 17:35:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Nov 2017 17:35:18 +0000 (UTC) To: 29427@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 24 18:35:11 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 1eIHsb-0005rp-Ea for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Nov 2017 18:35:09 +0100 Original-Received: from localhost ([::1]:50484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIHsi-0002Dq-Kf for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Nov 2017 12:35:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIHsY-0002Cf-Kn for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 12:35:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIHsU-0004SU-MG for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 12:35:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47605) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIHsU-0004Ru-IP for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 12:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eIHsU-00072c-8H for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 12:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Emmanuel Boudreault Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Nov 2017 17:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29427 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151154489027042 (code B ref -1); Fri, 24 Nov 2017 17:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Nov 2017 17:34:50 +0000 Original-Received: from localhost ([127.0.0.1]:56286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIHsH-000725-NW for submit@debbugs.gnu.org; Fri, 24 Nov 2017 12:34:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIGXo-0002sE-TD for submit@debbugs.gnu.org; Fri, 24 Nov 2017 11:09:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIGXi-00005f-PK for submit@debbugs.gnu.org; Fri, 24 Nov 2017 11:09:31 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIGXi-00005X-Lg for submit@debbugs.gnu.org; Fri, 24 Nov 2017 11:09:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIGXh-0007Im-MD for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 11:09:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIGXd-0008UG-M9 for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 11:09:29 -0500 Original-Received: from smtp.polymtl.ca ([132.207.4.11]:41370) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIGXd-0008RG-HC for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 11:09:25 -0500 Original-Received: from localhost (84-115-161-87.cable.dynamic.surfer.at [84.115.161.87]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id vAOG9Bmk019426 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 24 Nov 2017 11:09:18 -0500 X-Poly-FromMTA: (84-115-161-87.cable.dynamic.surfer.at [84.115.161.87]) at Fri, 24 Nov 2017 16:09:11 +0000 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 24 Nov 2017 12:34:48 -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:140325 Archived-At: Hello, I seem to be having an odd bug sending e-mails. I've configured msmtp to send e-mails. When I first send an e-mail in emacs, 'send-mail-function' isn't defined, I get a prompt, I choose transport and everything works as expected. The msmtp log shows that the from field is properly set to 'emmanuel.boudreault@polymtl.ca'. This keeps working until emacs is restarted. When I restart emacs, 'send-mail-function' is defined. When I try to send an e-mail, it fails saying the From field is incorrect. When I look at the From field in the msmtp log it shows that emacs generated a From field even though there was a valid one in the e-mail header. The From field is: 'manu@soma.i-did-not-set--mail-host-address--so-tickle-me'. The 'send-mail-function' is set to '(quote sendmail-send-it)'. I'm using emacs 25.3, using notmuch-message-mode. I've looked into the elisp and it seems that the problem arises in the emacs message mode (message.el) used by notmuch-mesage-mode. Any help would be appreciated. Thanks for you time, Emmanuel