From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68686: [Bug] smtpmail-send-queued-mail ignores some headers of the message it's sending! Date: Wed, 24 Jan 2024 17:01:22 +0100 Message-ID: <87v87i7mb1.fsf@ledu-giraud.fr> References: Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40809"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 68686@debbugs.gnu.org To: rameiko87@posteo.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 24 17:03:26 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rSfin-000AKV-Es for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Jan 2024 17:03:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSfiW-0000wE-Ua; Wed, 24 Jan 2024 11:03:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSfiU-0000tT-1R for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 11:03:06 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSfiL-0004N6-QZ for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 11:03:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rSfiQ-0000xl-IH for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 11:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Jan 2024 16:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68686 X-GNU-PR-Package: emacs Original-Received: via spool by 68686-submit@debbugs.gnu.org id=B68686.17061121803693 (code B ref 68686); Wed, 24 Jan 2024 16:03:02 +0000 Original-Received: (at 68686) by debbugs.gnu.org; 24 Jan 2024 16:03:00 +0000 Original-Received: from localhost ([127.0.0.1]:46346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSfiN-0000xU-Mm for submit@debbugs.gnu.org; Wed, 24 Jan 2024 11:03:00 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:37262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSfiK-0000xK-Vv for 68686@debbugs.gnu.org; Wed, 24 Jan 2024 11:02:58 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=KRdziOmN yQ0SpSNchOr8jK+V6DbmhPfVyPSyMu3HTT4=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=8Dq72i+J+arGnQ9qs2uQTuuuq9wZZp tt85DAmx8znawY3dD0V+BWfoFp7b5HXrPK4yqPeDezNc0MowVPHcbfDw== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=KRdziOmNyQ0SpSNc hOr8jK+V6DbmhPfVyPSyMu3HTT4=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=2DdT27oh8Q75wd5NDJJBa4DZ90QxahP2li6FfF b/h6Z3lsyaOVd40o3EiDmFgKTBGgEiEZVEaFtdH8hLNe5so3nCLFVraUNzbV4vHf2BMuu0 OqfzuyEHAKNK6uCEUD9bi/RNuEUtgZ7e5u8XAnOPCwvhMkFkp3Y0cDfzpLZHnCNRdM2KUx P4AZdTx+6MsYJ5w17O/E0/fdGNIoV336BD7gn0hoEMQLY0PbjYPliDMmBtJ4DfMD6RaO/6 wfl++uNr2eV8ilfpgACHHhEufH7cEt/mRNzx1aQ19TT4h6uL79kQOOIbNordPaQ5DebaZz e1aBEKvTpw61hKfJ6zcDQXJQ== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id cd9b5d06 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 24 Jan 2024 17:02:49 +0100 (CET) In-Reply-To: (rameiko's message of "Wed, 24 Jan 2024 12:50:11 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278791 Archived-At: rameiko87@posteo.net writes: > Disclaimer: I use Rmail on Emacs, and Message-Mode. > > Bug Part 1: > > The From: header is ignored (from the message as saved in 'queued > email folder') when sending with smtpmail-send-queued-mail, and takes > the value of user-mail-address when this wasn't previously customized > by the user. This is really worrisome! What else is ignored and > rewritten without warning when invoking smtpmail-send-queued-mail? This is not what I observe. Like you, I have a one word (without dot) hostname: "computer". Then, I do: - emacs -Q - M-: (setq send-mail-function 'smtpmail-send-it) - M-: (setq smtpmail-queue-mail t) - M-x message-mail [ here the "From:" is set to manuel@computer.mail-host-address-is-not-set] - I fill "To:" and 'C-c C-c' [ now another mail=E2=80=A6 ] - M-x message-mail [ I fill "To:" and change the "From:" to manuel@elsewhere ] - 'C-c C-c' [ do send now=E2=80=A6 ] - M-x smtpmail-send-queued-mail Both mails are sent and when I retrieve them both have the "From:" exactly how it was: respectively manuel@computer.mail-host-address-is-not-set and manuel@elsewhere > Followup to Bug Part 1: > > It would be interesting to figure out whether this happens also when > user-mail-address had been previously customized by the user. > > Bug Part 2: > > This discrepancy between the behaviour of queued-sending and immediate > sending (I use the default functions for the most current version of > Emacs as of today) I consider to be a bug on itself. Because not doing > things consistently confuses the user (even not doing the *wrong* > thing consistently confuses the user. In this case the wrong thing is > rewriting the From: header of every email). I have tested the same recipe as above (without setting smtpmail-queue-mail to t) and it works correctly for me and the "From:" of the two retrieved mails are also the same. Could you test this recipe? --=20 Manuel Giraud