From unknown Mon Jun 23 18:30:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29427: Problem sending emails in message-mode after restart 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: To: 29427@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.151154489027042 (code B ref -1); Fri, 24 Nov 2017 17:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Nov 2017 17:34:50 +0000 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 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 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 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 ) id 1eIGXi-00005X-Lg for submit@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 ) id 1eIGXh-0007Im-MD for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 11:09:30 -0500 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 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 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 From: Emmanuel Boudreault Date: Fri, 24 Nov 2017 17:09:10 +0100 Message-ID: <87lgivfyl5.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> 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-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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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@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 From unknown Mon Jun 23 18:30:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29427: Problem sending emails in message-mode after restart In-Reply-To: <87lgivfyl5.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Nov 2017 18:35: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: To: 29427@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15115484517588 (code B ref -1); Fri, 24 Nov 2017 18:35:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Nov 2017 18:34:11 +0000 Received: from localhost ([127.0.0.1]:56334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIInh-0001yI-4J for submit@debbugs.gnu.org; Fri, 24 Nov 2017 13:34:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIInf-0001y5-Nm for submit@debbugs.gnu.org; Fri, 24 Nov 2017 13:34:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIInZ-00051r-QD for submit@debbugs.gnu.org; Fri, 24 Nov 2017 13:34:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DRUGS_MUSCLE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41680) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIInZ-00051Z-Nm for submit@debbugs.gnu.org; Fri, 24 Nov 2017 13:34:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIInY-0004Vd-NR for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 13:34:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIInV-0004xB-FP for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 13:34:00 -0500 Received: from [195.159.176.226] (port=35791 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIInV-0004wd-76 for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 13:33:57 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eIInJ-0006of-TL for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 19:33:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ From: Eric Abrahamsen Date: Fri, 24 Nov 2017 10:33:39 -0800 Lines: 32 Message-ID: <87tvxj5xx8.fsf@ericabrahamsen.net> References: <87lgivfyl5.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cancel-Lock: sha1:NATEiZ4OG499N0QWgqFOYmzGfDg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) Emmanuel Boudreault writes: > 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)'. This happens when the variable `user-mail-address' is not set (or `message-user-fqdn', or `mail-host-address'). I assume you have one of those variables set in one of your init files, and that init file is not automatically loaded. I'm not sure how `send-mail-function' comes into it, and am a bit confused by your report: you say when you first send an email in emacs, it isn't set, but later say when you restart emacs, it is defined. Anyway, if you're using something based on message-mode, you should probably just set `message-send-mail-function' directly. HTH, Eric From unknown Mon Jun 23 18:30:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29427: Problem sending emails in message-mode after restart Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Nov 2017 17:21: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: To: Emmanuel Boudreault , Eric Abrahamsen Cc: 29427@debbugs.gnu.org Received: via spool by 29427-submit@debbugs.gnu.org id=B29427.151163041323523 (code B ref 29427); Sat, 25 Nov 2017 17:21:01 +0000 Received: (at 29427) by debbugs.gnu.org; 25 Nov 2017 17:20:13 +0000 Received: from localhost ([127.0.0.1]:58123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIe7g-00067I-PT for submit@debbugs.gnu.org; Sat, 25 Nov 2017 12:20:12 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:32768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIe7e-00065w-MN for 29427@debbugs.gnu.org; Sat, 25 Nov 2017 12:20:11 -0500 Received: by mail-wm0-f46.google.com with SMTP id g130so23509289wme.0 for <29427@debbugs.gnu.org>; Sat, 25 Nov 2017 09:20:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=oyMJXTyBY7HQrNYpwrfOvGCwq98cKA9Vbp2811BZ3VY=; b=YFMiS2P7W70xjKP/I49LNrHJ3NM6YhqYPxd4EbFpHqEBpD4rtyAIw4RVjpiIbLiR6g LjblkAbIyBz+/5Km6gmHLjUrsmHuZyen8TcaTc8Tp/I+FkM2TWidJgp0pKGFW9CfK4zI T8xy2VwfNvKNJ+xVMepl5PvMXbHWfRzqgN6ONn5y96YxX8G0XrTOwCRn/zSqFIzmQwt6 5GHkOwqNl8N5RjWQQzpwHXFu+9pcYyUqdpDG57expFkHxf6hmFf3HG6+bWGFbYzHFt+f fNUFh7ip6HwjMzhOLMCD+j91AnVVSie0tPQNKG+qamb/9szujnvb/5FP+875F59ruJAT NzBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=oyMJXTyBY7HQrNYpwrfOvGCwq98cKA9Vbp2811BZ3VY=; b=O7z72W0u2rElXoBOOXYzYUYD4Fmv0ZwV3upDtSJlbDd3udDhABo7XJNHsiyxM/rgwg gcnUW0VbA5nFAsGaJ84Pc3pGF6a+lRSyF1ij+QmSSj2CbVXOHeMJE6XxsHszIvHpap+l JLWEvN1fbSUudF6EmGtDbC9oYyuhrlc42KjOGk1UE9nJGcWTP8muBtyyoC1PgbQ9Cn7i nuygPvmG/EvVNdcc5ZPYs2s2ISRmU8RH2ogfnmaAW8jB9EtdmRssSgsJIucjXNwJ5iQ+ BJYClB3XV22HamejQm1e5B3yMqEEmfbyosKgdwZAvOBZqw+SOzPz0a/UW+AYusAzDb9f jrKQ== X-Gm-Message-State: AJaThX7XaIRA8OlLUIue2xhKpIYafcJCwlewoIHxEhHXUt6gTGaTQFv0 l0cnZ+qHYgddol4nb8Ja2DjAYg== X-Google-Smtp-Source: AGs4zMagViHPxYZ7Q4M79ZZSCaTkTfiUKZ6uEl1+yUugyFt+kndJx36YRHJ9D/XThQbTNUMEucGJpw== X-Received: by 10.80.215.89 with SMTP id i25mr45858166edj.274.1511630404953; Sat, 25 Nov 2017 09:20:04 -0800 (PST) Received: from localhost ([134.226.214.245]) by smtp.gmail.com with ESMTPSA id d5sm12407652edj.65.2017.11.25.09.20.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Nov 2017 09:20:04 -0800 (PST) From: "Basil L. Contovounesios" References: <87lgivfyl5.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> <87tvxj5xx8.fsf@ericabrahamsen.net> Date: Sat, 25 Nov 2017 17:19:57 +0000 In-Reply-To: <87tvxj5xx8.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 24 Nov 2017 10:33:39 -0800") Message-ID: <87a7zatgw2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Eric Abrahamsen writes: > Emmanuel Boudreault writes: > >> When I first send an e-mail in emacs, 'send-mail-function' >> isn't defined [...] > > I'm not sure how `send-mail-function' comes into it, and am a bit > confused by your report: you say when you first send an email in emacs, > it isn't set, but later say when you restart emacs, it is defined. Actually Emmanuel is saying the opposite, namely that `send-mail-function' is somehow undefined until restarting Emacs. My issue with this is that `send-mail-function' should always be defined as either `sendmail-send-it' or `sendmail-query-once' when starting Emacs with the -Q flag, in all versions of Emacs until at least as far back as 23. Perhaps some custom configuration code or package is misbehaving? > Anyway, if you're using something based on message-mode, you should > probably just set `message-send-mail-function' directly. +1 -- Basil From unknown Mon Jun 23 18:30:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29427: Problem sending emails in message-mode after restart References: <87lgivfyl5.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> In-Reply-To: <87lgivfyl5.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Nov 2017 15:23: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: To: Emmanuel Boudreault , Eric Abrahamsen Cc: 29427@debbugs.gnu.org Received: via spool by 29427-submit@debbugs.gnu.org id=B29427.151170972126070 (code B ref 29427); Sun, 26 Nov 2017 15:23:02 +0000 Received: (at 29427) by debbugs.gnu.org; 26 Nov 2017 15:22:01 +0000 Received: from localhost ([127.0.0.1]:59449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIykr-0006mJ-12 for submit@debbugs.gnu.org; Sun, 26 Nov 2017 10:22:01 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:42908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIykp-0006m5-3T for 29427@debbugs.gnu.org; Sun, 26 Nov 2017 10:21:59 -0500 Received: by mail-wm0-f53.google.com with SMTP id 124so12920163wmv.1 for <29427@debbugs.gnu.org>; Sun, 26 Nov 2017 07:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:mime-version; bh=by6gMYhwFHzbw8fxVd2mAdkqzvGaVTTi3dPXsKtABkw=; b=HiLi+YTvZiS2P7y50ZItfSrJGNeYlQDceWPWS9PHsjAxd/vAqMHPCXbTPO29YWKdVq L0TwrAAS4cxDZP0SzfVNN+oAT0eB8LWY7GMir2f6bqZz48fcIH36w4ueUhVvm2uzzm7P P3mZcA7DlKu3H9Jep2jJwhi2NYTVo75VVFNsvNikaXK1GwM0JZB47/bVXLiuOAZkN4yt WwM31VVS8v/yCFLvpeAKR0TuW0rgObivmnUbn5puxgx7dfM6lIpOa9HI6jUs9RV5Jc7j KyIWOZjmBfMm5UZHIofOFW/ngy603x/oBBeSzFXMGWhx3MSwG9LRTYuhjf0UgiggpYBD aMWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version; bh=by6gMYhwFHzbw8fxVd2mAdkqzvGaVTTi3dPXsKtABkw=; b=NqvRZQD7GmG1K4WMm0VyrWVcjhKPjyZFBK0CkKaIaMN+5YkG3pztv/ffCFtwDGgtAs 1pl4/8ZIdrOhlHM+xivu79CAfOLQkmAnnvAqnU4yW8NORhnMMgTiNKkRhm4SFPu1hz6P h3q2QvN6xi0rHaBzyTslWXhUrszpnowHQo4CKkXIsj7Zph91HHq3wTEc7HB7FJBkg7F2 Y8e2yxb2u5Bz56ryouxXd5nlwN5EN8YX7CB3uioqzPH2tZrujO0KW1oRrordxbm6Rmk1 N130ybDoA7jReOr8ExbShaJsCCUiMiD6d6saIXe9NWhsN//pm0uvL7gl5rqeINX/uGyj KmzQ== X-Gm-Message-State: AJaThX4C/bnk1Za3IY0PxHXN6vONviuAxS4eL30AqrviPgfKQv/bsrJv ld8FQtwMqMm1Sr33WHkz8Pi36g== X-Google-Smtp-Source: AGs4zMZY46XD+aALzOCVagdFH0Z3BpPLAAqTMmN3ixNy9ur5jYhE845NH2wI/Jj4Vm1IJrBZDvM6EA== X-Received: by 10.80.192.85 with SMTP id u21mr46688361edd.37.1511709713011; Sun, 26 Nov 2017 07:21:53 -0800 (PST) Received: from localhost ([2a02:8084:4f41:8c80:9929:5bdb:4629:fab8]) by smtp.gmail.com with ESMTPSA id d60sm17506303edc.44.2017.11.26.07.21.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Nov 2017 07:21:52 -0800 (PST) From: "Basil L. Contovounesios" Date: Sun, 26 Nov 2017 15:21:47 +0000 Message-ID: <87o9npkqus.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain Emmanuel - I am forwarding your email, which follows my signature, to the bug report's address. Unless sending a private message, in the future please include <29427@debbugs.gnu.org> as a recipient. Eric - I lack experience in mailing list etiquette, so if forwarding wasn't the best mechanism for me to use here please let me know what to do in the future. Thanks, -- Basil --=-=-= Content-Type: message/rfc822 Content-Disposition: inline Delivered-To: contovob@alumni.tcd.ie Received: by 10.202.214.68 with SMTP id n65csp294079oig; Sat, 25 Nov 2017 23:20:55 -0800 (PST) X-Google-Smtp-Source: AGs4zMY3/+Fv81FOs+Uj5vA9nvPvKpPIb9xa0DspE1B0ElbSg8pgwt34QEZ9ttm7YMHnZBRO8KOx X-Received: by 10.36.1.200 with SMTP id 191mr1801642itk.55.1511680855339; Sat, 25 Nov 2017 23:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511680855; cv=none; d=google.com; s=arc-20160816; b=W2qU9jWTW/Ojfv1E+d3cBFzi7vWN6aq5tyyamHFf8ZI6ibmzRpDlo3+2LdyYobXSQY SZ85yKPdmofZequiduSqwk9XaIzicWVyJ4koiJmktEZzx6O6krXmxDI6gkYTH5YP6fpq 9KVd5e2WdfeYr8s9sa0RsKLDgrn1Lx0gDDJavLaXT4DZDagMcpH2iU0uMYPjEkTLV3+J Bsx9kMBxaRTtkNlDXYXULpfIZWggEja9t9rtRtcu6i+2G73y4FlwJViC4J+irWj8n2rK JvbJXatXBao+vWgxANOQPGSQK4K696le+4F+Npg/k07Qx8WRMzAi9oAOsmAMoNES4YJm 2/NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=spamdiagnosticmetadata:spamdiagnosticoutput:mime-version:message-id :date:references:in-reply-to:subject:to:from :arc-authentication-results; bh=JtIjTri0FJfIrUSfphXPqDly7yTBn1cFELyX0Axn4ns=; b=rCwDQQPZumpKBW28swtYc8aib/jGaosAPWnM6BGyxbjSjo9eQWZkHesjSum17VBFfy h1s/mrzQpuhSDhvBpxcVBSjKeUPxURpTVFnJdaS5r4/+JrEzqEStg2WyN1fXVt8Mqo7O 4ws1dda3C5mPK7FDVxpwW176Ih7zOKURvU0t5df34Aj91cN/qyIKcC6lVEtX6zO7rvyI lb/i5oI6cZ1rQLnREdoWM0UX9WRgY0iksl2Dl7DBC+lYRG3IlD7TmkUC03yefQ1G687w HeWVT0RN8KxuSi6AunQEEQU955BCLmREL1lLqt+7lYZD67ftMwaXI9MRSsmRmwUjIDod 9/dw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning emmanuel.boudreault@polymtl.ca does not designate 2603:10a6:8:1::49 as permitted sender) smtp.mailfrom=emmanuel.boudreault@polymtl.ca Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01lp0247.outbound.protection.outlook.com. [213.199.154.247]) by mx.google.com with ESMTPS id y23si20819235iof.316.2017.11.25.23.20.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Nov 2017 23:20:55 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning emmanuel.boudreault@polymtl.ca does not designate 2603:10a6:8:1::49 as permitted sender) client-ip=2603:10a6:8:1::49; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning emmanuel.boudreault@polymtl.ca does not designate 2603:10a6:8:1::49 as permitted sender) smtp.mailfrom=emmanuel.boudreault@polymtl.ca Received: from DB3PR0202CA0036.eurprd02.prod.outlook.com (2603:10a6:8:1::49) by VI1PR0201MB1917.eurprd02.prod.outlook.com (2603:10a6:800:11::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Sun, 26 Nov 2017 07:20:52 +0000 Received: from HE1EUR02FT024.eop-EUR02.prod.protection.outlook.com (2a01:111:f400:7e05::209) by DB3PR0202CA0036.outlook.office365.com (2603:10a6:8:1::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.260.4 via Frontend Transport; Sun, 26 Nov 2017 07:20:52 +0000 Authentication-Results: spf=pass (sender IP is 132.207.4.11) smtp.mailfrom=polymtl.ca; tcd.ie; dkim=none (message not signed) header.d=none;tcd.ie; dmarc=bestguesspass action=none header.from=polymtl.ca;compauth=pass reason=100 Received-SPF: Pass (protection.outlook.com: domain of polymtl.ca designates 132.207.4.11 as permitted sender) receiver=protection.outlook.com; client-ip=132.207.4.11; helo=smtp.polymtl.ca; Received: from smtp.polymtl.ca (132.207.4.11) by HE1EUR02FT024.mail.protection.outlook.com (10.152.10.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.239.4 via Frontend Transport; Sun, 26 Nov 2017 07:20:51 +0000 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 vAQ7Kgw6015417 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 26 Nov 2017 02:20:48 -0500 From: Emmanuel Boudreault To: "Basil L. Contovounesios" Subject: Re: bug#29427: Problem sending emails in message-mode after restart In-Reply-To: References: Date: Sun, 26 Nov 2017 08:20:40 +0100 Message-ID: <87d145ecaf.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> X-Poly-FromMTA: (84-115-161-87.cable.dynamic.surfer.at [84.115.161.87]) at Sun, 26 Nov 2017 07:20:42 +0000 Return-Path: emmanuel.boudreault@polymtl.ca X-EOPAttributedMessage: 0 X-EOPTenantAttributedMessage: d595be8d-b306-45f4-8064-9e5b82fbe52b:0 X-Forefront-Antispam-Report: CIP:132.207.4.11;IPV:NLI;CTRY:CA;EFV:NLI;SFV:SKN;SFS:;DIR:INB;SFP:;SCL:-1;SRVR:VI1PR0201MB1917;H:smtp.polymtl.ca;FPR:;SPF:None;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;HE1EUR02FT024;1:HCiyss6tzMMoZFpcUHBqDlfMLe7C7skelHwa6ah9Y8JutTYy3ts8K0VR/BwbwSQNYnVNdpXmPjaezo2CtkmoFcLowjGgNIPVytiGmOOT0fkJ0d3iTJpAywzhg/l/Y5hY X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 530f8cbb-fc04-4ffd-458f-08d5349e39bf X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4605076)(4608076)(4534020)(121220049038)(71702078);SRVR:VI1PR0201MB1917; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB1917;3:jDHBocSseC86CrUBlwiJYwFQh1nltOAU2Jli37HE0Elrn2pZCezt00COKv46QSUcdol5bb6kyKHJfqZ7H10XlIRorglUQwIeglsaCpc7fEimaWiBfK5CxHVO9LqCBck+pPHeEChGM7DzGXaSpIqxoQkp5rMWPqNmICbzHejg46NTHe/u/QnkoLdAchYvxqKcqZJE/lO2UcldMg2WVXiRuP1pIsamfOz3+aYioAKfAaJ8Ee38pQ6ymeqMzUkGa1pAvOz0wIMOKxtAH0XYZDCFNwW76SDlKlweNpW8nxs/d3Ny0ZmzNSEdqqMeWSd5LTE4nG/jbwCSgbj5XCScfjmSTQ==;25:uehjGr65zTu8YBkK1e+tqltM2VEtxqx/aaC1y9aq0jSFRhGNM8yvnFSEXrE1d7gv30/b1zSyK/i4WsiItr5o7zeseIxfLMTjNfOs4Gl6wp88fyo5KDnpaukjR6wfp68PUMr6HXNISYVsnnspfb0Xi7sIH2iIzfcagof4FKobjY55LdGX4Eoozp9WyPGTkQUE718sWz8u9iMkUvfc4E5bgKt5CCNW9edVq0kFTLInZet59wRzKbeaDBYYjlFE1y/mmqi2SgdEqnrcukj0CSvUpo/YZuR/J8+ts0e/0ehQlo5X0DdVDOFin08UCUZxHbXNyVIXOsagTLbjjRKfZ2ydMg==;31:UpfUs+coclGqOmOa3YvBp+ZMEMiLNqyjBMnG2Me5iCPLPV9RfOrHjWdFjEizYC535XDQzXvIcz/BmTNMQRhuLdI6ejAlFmaMyqnayUrRz4KlBxKkYT83iJXt4uaUg4HyWHccotrr4BScnQ/RdpJpYXqn6q+/a+iiHNyWi4UPeOEu3NBNgiPIoqLDl08w+TxBrZ9YqddogStIHPJIxBGgj4t8iB/1w1bJ+BBjObQoNYE= X-MS-TrafficTypeDiagnostic: VI1PR0201MB1917: X-LD-Processed: d595be8d-b306-45f4-8064-9e5b82fbe52b,ExtAddr X-TCD-Routed-via-EOP: Routed via EOP X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB1917;20:9YndNMVE4ynKO/VMHItbGHjwiTW9M8/SzCB1ACZz1Ssqsm+bRv0f5o5H7T/ACBSqdEsdYJOXUekfxUwXY/hLF2QCn0BrfrSZGaONTzZGHdclM5uGPqqc3lHXLcqvVsctS0aatWALQrl9KWVCmhNlyGEhFZRqeAA7xy9hHpFA0htLjWON02gzn8RTC1tWyy6IDUxsfYnW/xHdxeRA9pvSInNp1bw4OhDYrseXYtn7DJKODw6nwaeelIyeGjQXMjEumzXiaYTxGSWmrgsCZ6hobuekl2VNDCYgL4L/I5J1Ez5jS6bPIcg2HlKQPb+QCvS74/Y0bpqgfxNxVQJULTz7YEba/MH3Xm7ZwinoBgIpDAmJYpPZNFjZrn94nCJZg8oejgsVKKwjoKgnRP6oh9QClPVhYNCRNd7sntEBYEse4ZM/KYYjFQlOw8db1HsPd3KuY7a70lxu1oA1Pu6YV7LQC5Ziyce/KsYuaHevGXDHNdvfAvRZYukRQyHveA3g6Gn6j+Rz6he4XuvQHM+DxKzxjSE+ye35gpRn/CaWPI1p8poxhRHLecY4m6aw/LLU9t8bRrtXdM6u1BMf8/PnNd1sd0zGynG+PQdsYrWotp0nsy8=;4:5JV+IHETVa7hrCqI5cfWFjRqzCEuowZ7UQGnnV9jiqE8ErebEUpSk3qtYOvzRyiN40kcIncAODmKY8lH43jW8rT2mGcwyAkIUjalCC2IRBnXaUUOoWkQgvIj4XqZ5pT/hk7K4SXLnPP6IelQOObRsZOFR3YfS/ikaB+YJzTywlvJKVGgm5UC4LfQ5+vl75XohS+vRqySqsQ7Lvzz3mgaI7tEHKuo9oZTji37mUgQ9Mnsyh6l9T2EBmSnGlF29v33Bn8kcVmssbImDp4w9Nip7w== X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(2401047)(8121501046)(9101536074)(10201501046)(3231022)(3002001)(93006095)(93004095)(201708071742011);SRVR:VI1PR0201MB1917;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR0201MB1917; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB1917;23:xPQCnihjaayRpVw9pv+0s/wHCrQO9iivJ7HxrRCVfuHuiCyTd5DueMK7MtEQzub/dRcojBRgong+lnZwo7giAT1TlweDVMTeEXVQEWfqqZHNjvGVTVY/qoUJWuAeTg4OxIZNyduoCvhJ4fX4PF18zjcxC5EX7HpUA0EJXXfo3ygrgDm041NPLWgTXtaBqUfa6Zf2/R7YdbeFDXG/gAfwaA==;6:GyxTcBbMkAOm/mdIECmGRTHdjsJiOg7wH4CadOqYh2PFbvTpeyQtCDIrBOsK0ENeSp+sEd07I2solQl3yJ3gJBwg7NdZdlIXk/bQHwdRw6O1vAKQCThIQel4G3qWrHvuxd+gzREbE9YVKxgunEBa8Rza3V4YKnxR9Vi4f5n0XcAueCy94YD/NSIfNudpWT/UF6VaBKH5+p2ycNUH77FOlRhF7tV9aT+7ACxs5yMP+xGVgMPnD7mFxp9vczQdNwrm3URuQp+uwEshqyHWY6leA+N4FqNgIeB61PPQLzbvd1Ytbec/dSFYjvIdGny/JZm5dtdkTQBJf+8dT9RHPmIz1Rpo+RKXgO05dgmV8Zdsvh4=;5:KDf4XppTz4jLEn284AQttzrPp9Rszrq0zN93rJhL1wk852jOZpEaT5JPdw9nv/MQGpO52oUKyJQT1DSImUZxVEbb9lwPy/5GjupU6w5hpFWVOgaiIaoAQDcDRw08M040yYwtEuOvaFmAHEagccyDd1itjVIFR7RhH912EcwmV00=;24:YmygSu3KBk9jggw7YGowe7dS3Yn1Bjyo5Eobmc85LCLBWe4P9vp1qC3PnsSbseVwRJeMFoZEdOq6NDHxxsjSLWWEKfARXmRToHO9rU702LE= SpamDiagnosticOutput: 1:2 SpamDiagnosticMetadata: 98f9ff0996ad4c28aec7614452722ae6 X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB1917;7:kNX2/FgxgmwURmWkRez+jeA8E/jWRtKz9tJT+3gM7BjkCJH0TYsn5O3U27Cp7IPxSBcyePPFLE6pFcgLMF6LIPfH5Mw60I1ewLVVl8UhiP/fmcTaFkxXOmVNQe9PyyGOA+vLwaSfLNjdQRYpnKWnrmdFPGJ6vXnJ/YUHDxYURYxQhaSkxGtt6/4wrHCumrsCF2QMItvuF08oMRv57Izw1iGBeHJGCH7t7BPS+h1j3k2bXE3Etu/FR5vMjk2+P6E5 X-OriginatorOrg: TCDUD.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2017 07:20:51.6419 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 530f8cbb-fc04-4ffd-458f-08d5349e39bf X-MS-Exchange-CrossTenant-Id: d595be8d-b306-45f4-8064-9e5b82fbe52b X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB1917 X-TUID: XnTYTT9Pqdj2 MIME-Version: 1.0 Content-Type: text/plain >>> When I first send an e-mail in emacs, 'send-mail-function' >>> isn't defined [...] >> >> I'm not sure how `send-mail-function' comes into it, and am a bit >> confused by your report: you say when you first send an email in emacs, >> it isn't set, but later say when you restart emacs, it is defined. Once I send an e-mail from 'sendmail-query-once', 'send-mail-function' is set to 'sendmail-send-it' in my config file by the 'sendmail-query-once' process. Things then work until I restart emacs. After restarting emacs, message-mode tries to incorrectly guess the 'From' field of my e-mail even though it is already present. > Actually Emmanuel is saying the opposite, namely that > `send-mail-function' is somehow undefined until restarting > Emacs. My issue with this is that `send-mail-function' > should always be defined as either `sendmail-send-it' or > `sendmail-query-once' when starting Emacs with the -Q flag, > in all versions of Emacs until at least as far back as 23. > Perhaps some custom configuration code or package is > misbehaving? I'm sorry, I misspoke, I meant that I'm not defining 'send-mail-function' in my config file. I just checked and it is indeed set to 'sendmail-query-once' when not set in my config file. >> Anyway, if you're using something based on message-mode, you should >> probably just set `message-send-mail-function' directly. > > +1 So this is my problem, when 'send-mail-function' is set to 'sendmail-send-it' or when 'message-send-mail-function' is set to 'message-send-mail-with-sendmail', somewhere in the message mode, the code tries to guess my From and sets it incorrectly event though there is already a valid from in the message. To get things to work, I have to remove those settings set by 'sendmail-query-once' from my config file and restart emacs. Things then work for that session. Sorry for my bad initial explanation. Thanks, Emmanuel --=-=-=-- From unknown Mon Jun 23 18:30:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29427: Problem sending emails in message-mode after restart 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: To: "Basil L. Contovounesios" , Eric Abrahamsen Cc: 29427@debbugs.gnu.org Received: via spool by 29427-submit@debbugs.gnu.org id=B29427.151172484113719 (code B ref 29427); Sun, 26 Nov 2017 19:34:02 +0000 Received: (at 29427) by debbugs.gnu.org; 26 Nov 2017 19:34:01 +0000 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 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 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 From: Emmanuel Boudreault In-Reply-To: <87o9npkqus.fsf@gmail.com> References: <87o9npkqus.fsf@gmail.com> Date: Sun, 26 Nov 2017 20:33:51 +0100 Message-ID: <87tvxgesww.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > 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 From unknown Mon Jun 23 18:30:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29427: Problem sending emails in message-mode after restart 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: To: Emmanuel Boudreault Cc: "Basil L. Contovounesios" , Eric Abrahamsen , 29427@debbugs.gnu.org Received: via spool by 29427-submit@debbugs.gnu.org id=B29427.151174670922539 (code B ref 29427); Mon, 27 Nov 2017 01:39:01 +0000 Received: (at 29427) by debbugs.gnu.org; 27 Nov 2017 01:38:29 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 From: Glenn Morris References: <87o9npkqus.fsf@gmail.com> <87tvxgesww.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> 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 Date: Sun, 26 Nov 2017 20:37:58 -0500 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") Message-ID: <1ga7z8v6vd.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From unknown Mon Jun 23 18:30:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29427: Problem sending emails in message-mode after restart 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: To: Glenn Morris Cc: "Basil L. Contovounesios" , 29427@debbugs.gnu.org, Emmanuel Boudreault Received: via spool by 29427-submit@debbugs.gnu.org id=B29427.151182423614601 (code B ref 29427); Mon, 27 Nov 2017 23:11:01 +0000 Received: (at 29427) by debbugs.gnu.org; 27 Nov 2017 23:10:36 +0000 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 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 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= From: Eric Abrahamsen References: <87o9npkqus.fsf@gmail.com> <87tvxgesww.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> <1ga7z8v6vd.fsf@fencepost.gnu.org> Date: Mon, 27 Nov 2017 15:08:45 -0800 In-Reply-To: <1ga7z8v6vd.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 26 Nov 2017 20:37:58 -0500") Message-ID: <87609v720y.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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... From unknown Mon Jun 23 18:30:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29427: Problem sending emails in message-mode after restart Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 May 2019 21:12:03 +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: To: Glenn Morris Cc: "Basil L. Contovounesios" , Eric Abrahamsen , 29427@debbugs.gnu.org, Emmanuel Boudreault Received: via spool by 29427-submit@debbugs.gnu.org id=B29427.155778188512669 (code B ref 29427); Mon, 13 May 2019 21:12:03 +0000 Received: (at 29427) by debbugs.gnu.org; 13 May 2019 21:11:25 +0000 Received: from localhost ([127.0.0.1]:46506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQIEG-0003IG-A3 for submit@debbugs.gnu.org; Mon, 13 May 2019 17:11:25 -0400 Received: from quimby.gnus.org ([80.91.231.51]:46316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQIED-0003I7-8r for 29427@debbugs.gnu.org; Mon, 13 May 2019 17:11:22 -0400 Received: from [12.41.144.226] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hQIE7-0001hF-Eu; Mon, 13 May 2019 23:11:18 +0200 From: Lars Ingebrigtsen References: <87o9npkqus.fsf@gmail.com> <87tvxgesww.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> <1ga7z8v6vd.fsf@fencepost.gnu.org> Date: Mon, 13 May 2019 17:11:10 -0400 In-Reply-To: <1ga7z8v6vd.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 26 Nov 2017 20:37:58 -0500") Message-ID: <871s12qcup.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Glenn Morris writes: > 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) > > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Glenn Morris writes: > 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. I think so to, but I wouldn't be surprised if that breaks mail sending on some systems. > It all seems Very Complicated. Mail is a mystery. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Mon Jun 23 18:30:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29427: Problem sending emails in message-mode after restart Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Sep 2019 23:15: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: To: Eric Abrahamsen Cc: "Basil L. Contovounesios" , Glenn Morris , 29427@debbugs.gnu.org, Emmanuel Boudreault Received: via spool by 29427-submit@debbugs.gnu.org id=B29427.156919404221181 (code B ref 29427); Sun, 22 Sep 2019 23:15:01 +0000 Received: (at 29427) by debbugs.gnu.org; 22 Sep 2019 23:14:02 +0000 Received: from localhost ([127.0.0.1]:34677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCB3K-0005VP-G4 for submit@debbugs.gnu.org; Sun, 22 Sep 2019 19:14:02 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCB3I-0005V3-1q for 29427@debbugs.gnu.org; Sun, 22 Sep 2019 19:14:00 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCB39-0003r0-AR; Mon, 23 Sep 2019 01:13:58 +0200 From: Lars Ingebrigtsen References: <87o9npkqus.fsf@gmail.com> <87tvxgesww.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> <1ga7z8v6vd.fsf@fencepost.gnu.org> <87609v720y.fsf@ericabrahamsen.net> Date: Mon, 23 Sep 2019 01:13:50 +0200 In-Reply-To: <87609v720y.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 27 Nov 2017 15:08:45 -0800") Message-ID: <87h853hqkx.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eric Abrahamsen writes: > 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eric Abrahamsen writes: > 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. Yes, I don't think there's anything to be done here to fix this in general -- there's too many moving parts here to get things working on all clients. (And especially with a local MTA.) So I'm closing this as a "wontfix". -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 22 19:14:05 2019 Received: (at control) by debbugs.gnu.org; 22 Sep 2019 23:14:05 +0000 Received: from localhost ([127.0.0.1]:34680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCB3M-0005Vo-SW for submit@debbugs.gnu.org; Sun, 22 Sep 2019 19:14:05 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCB3L-0005Vh-UC for control@debbugs.gnu.org; Sun, 22 Sep 2019 19:14:04 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCB3J-0003rB-8i for control@debbugs.gnu.org; Mon, 23 Sep 2019 01:14:03 +0200 Date: Mon, 23 Sep 2019 01:14:00 +0200 Message-Id: <87ftknhqkn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #29427 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 29427 wontfix close 29427 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 29427 wontfix close 29427 quit