GNU bug report logs - #29427
Problem sending emails in message-mode after restart

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Emmanuel Boudreault <emmanuel.boudreault@HIDDEN>; dated Fri, 24 Nov 2017 17:35:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Nov 2017 17:34:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 24 12:34:50 2017
Received: from localhost ([127.0.0.1]:56286 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eIHsH-000725-NW
	for submit <at> debbugs.gnu.org; Fri, 24 Nov 2017 12:34:50 -0500
Received: from eggs.gnu.org ([208.118.235.92]:38550)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <emmanuel.boudreault@HIDDEN>) id 1eIGXo-0002sE-TD
 for submit <at> debbugs.gnu.org; Fri, 24 Nov 2017 11:09:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <emmanuel.boudreault@HIDDEN>) id 1eIGXi-00005f-PK
 for submit <at> debbugs.gnu.org; Fri, 24 Nov 2017 11:09:31 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_20,DRUGS_MUSCLE
 autolearn=disabled version=3.3.2
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 <emmanuel.boudreault@HIDDEN>)
 id 1eIGXi-00005X-Lg
 for submit <at> debbugs.gnu.org; Fri, 24 Nov 2017 11:09:30 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57741)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <emmanuel.boudreault@HIDDEN>) id 1eIGXh-0007Im-MD
 for bug-gnu-emacs@HIDDEN; Fri, 24 Nov 2017 11:09:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <emmanuel.boudreault@HIDDEN>) id 1eIGXd-0008UG-M9
 for bug-gnu-emacs@HIDDEN; Fri, 24 Nov 2017 11:09:29 -0500
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 <emmanuel.boudreault@HIDDEN>)
 id 1eIGXd-0008RG-HC
 for bug-gnu-emacs@HIDDEN; Fri, 24 Nov 2017 11:09:25 -0500
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 <bug-gnu-emacs@HIDDEN>; Fri, 24 Nov 2017 11:09:18 -0500
From: Emmanuel Boudreault <emmanuel.boudreault@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Problem sending emails in message-mode after restart
Date: Fri, 24 Nov 2017 17:09:10 +0100
Message-ID: <87lgivfyl5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
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-Received-From: 2001:4830:134:3::11
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 24 Nov 2017 12:34:48 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

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@HIDDEN'. 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@HIDDEN'.
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




Acknowledgement sent to Emmanuel Boudreault <emmanuel.boudreault@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#29427; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 24 Nov 2017 17:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.