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: Sun, 26 Nov 2017 20:33:51 +0100 Message-ID: <87tvxgesww.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> References: <87o9npkqus.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511724854 7018 195.159.176.226 (26 Nov 2017 19:34:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2017 19:34:14 +0000 (UTC) Cc: 29427@debbugs.gnu.org To: "Basil L. Contovounesios" , Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 26 20:34: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 1eJ2gq-0001QS-0w for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Nov 2017 20:34:08 +0100 Original-Received: from localhost ([::1]:57790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJ2gx-0004ic-6V for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Nov 2017 14:34:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJ2gp-0004iL-OU for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 14:34:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJ2gk-0007Lu-Qq for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 14:34:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50952) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJ2gk-0007Lq-NF for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 14:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eJ2gk-0003ZS-HI for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 14:34: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: Sun, 26 Nov 2017 19:34:02 +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.151172484113719 (code B ref 29427); Sun, 26 Nov 2017 19:34:02 +0000 Original-Received: (at 29427) by debbugs.gnu.org; 26 Nov 2017 19:34:01 +0000 Original-Received: from localhost ([127.0.0.1]:59633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJ2gj-0003ZC-4C for submit@debbugs.gnu.org; Sun, 26 Nov 2017 14:34:01 -0500 Original-Received: from smtp.polymtl.ca ([132.207.4.11]:49757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJ2gh-0003Z4-4Q for 29427@debbugs.gnu.org; Sun, 26 Nov 2017 14:33:59 -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 vAQJXpjH025287 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 26 Nov 2017 14:33:57 -0500 In-Reply-To: <87o9npkqus.fsf@gmail.com> X-Poly-FromMTA: (84-115-161-87.cable.dynamic.surfer.at [84.115.161.87]) at Sun, 26 Nov 2017 19:33:51 +0000 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:140423 Archived-At: > After restarting emacs, message-mode tries to incorrectly guess the > 'From' field of my e-mail even though it is already present. I have found a workaround. When emacs calls sendmail, it passes along a '-f' argument with a badly formed from address and that is my problem. The from address is obtained using the 'message-sendmail-envelope-from' function in 'message.el'.. I found a nice comment: ``` ;; Always specify who from, ;; since some systems have broken sendmails. ;; But some systems are more broken with -f, so ;; we'll let users override this. (and (null message-sendmail-f-is-evil) (list "-f" (message-sendmail-envelope-from))) ``` 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. > Emmanuel - I am forwarding your email, which follows my > signature, to the bug report's address. Thank you, I forgot to hit reply all. Cheers, Emmanuel