From unknown Wed Aug 20 01:17:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#36937 <36937@debbugs.gnu.org> To: bug#36937 <36937@debbugs.gnu.org> Subject: Status: 26.1; Sending mails doesn't set From: correctly Reply-To: bug#36937 <36937@debbugs.gnu.org> Date: Wed, 20 Aug 2025 08:17:47 +0000 retitle 36937 26.1; Sending mails doesn't set From: correctly reassign 36937 emacs submitter 36937 "Jose A. Ortega Ruiz" severity 36937 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 05 14:00:54 2019 Received: (at submit) by debbugs.gnu.org; 5 Aug 2019 18:00:54 +0000 Received: from localhost ([127.0.0.1]:35836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huhHy-0004Ct-38 for submit@debbugs.gnu.org; Mon, 05 Aug 2019 14:00:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:34520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huhHw-0004Cm-8j for submit@debbugs.gnu.org; Mon, 05 Aug 2019 14:00:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50851) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huhHu-0000xm-BN for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2019 14:00:52 -0400 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=ALL_TRUSTED,BAYES_50, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1huhHu-0006jx-2V for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2019 14:00:50 -0400 Received: from cpc103058-sgyl39-2-0-cust254.18-2.cable.virginm.net ([94.173.216.255]:49894 helo=imladris.local) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1huhHs-0002nB-Uu for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2019 14:00:49 -0400 Received: by imladris.local (Postfix, from userid 1000) id 744F9320279; Mon, 5 Aug 2019 19:00:46 +0100 (BST) From: "Jose A. Ortega Ruiz" To: bug-gnu-emacs@gnu.org Subject: 26.1; Sending mails doesn't set From: correctly User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Mon, 05 Aug 2019 19:00:46 +0100 Message-ID: <87pnljijap.fsf@gnus.jao.io> 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit 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: -3.3 (---) This problem started happening in builds from master around 4 days ago: - start emacs -Q - M-x mail (or any other form of sending email) - Set a From: value different from user@localhostname - Send mail using local sendmail The mail is sent with a from header seen by postfix (i don't know about other MTAs) as user@localhost, instead of the From: i set in the headers. By user@localhost i mean the unix username running emacs and the hostname as returned by hostname(1). It seems emacs is just ignoring the value of From:, or setting it in a way postfix doesn't understand. I know almost for sure it's an emacs problem because emacs 26 or an earlier version of emacs-snapshot is working without problems. Thanks! In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2019-08-03, unofficial emacs-snapshot build: http://emacs.secretsauce.net built on lilbastard Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux bullseye/sid Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Sending... Save this mail sending choice? (y or n) n Sending...done Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/27.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.0.50/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/27.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.0.50/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars --without-gconf --without-gsettings 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-snapshot-eSXVQs/emacs-snapshot-20190803+emacs-26.1-6779-g5ae1191e5b0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -fno-omit-frame-pointer' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM THREADS PDUMPER LCMS2 GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 44987 9529) (symbols 48 6203 1) (strings 32 16184 1920) (string-bytes 1 513447) (vectors 16 9265) (vector-slots 8 129612 10712) (floats 8 24 26) (intervals 56 271 0) (buffers 992 13)) From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 05 15:46:28 2019 Received: (at control) by debbugs.gnu.org; 5 Aug 2019 19:46:28 +0000 Received: from localhost ([127.0.0.1]:35891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huiw6-0006vB-UF for submit@debbugs.gnu.org; Mon, 05 Aug 2019 15:46:27 -0400 Received: from mout.gmx.net ([212.227.17.20]:56521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huiw5-0006uy-0B for control@debbugs.gnu.org; Mon, 05 Aug 2019 15:46:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1565034365; bh=U4p4bt8pqeCWxaE10DDQ5FzEwga0Yukc7+ULOMhUTJ8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=AAOF/fkRzn8GICumFyK6Xe03orqAtymvSUZaXolF8S0Yp26+q6nZ3xSLfohzjMBu9 wUVsHApREhOlFH/N0+R94wP0kp7R0MAVoNTcoByUUaabWH9F5K3DlT4AGNUVK8uSXK e0OG+DJvg/TKOzRCBzk5Wie8MsXg6Efq59es7Eds= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([79.223.36.122]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LoKHN-1iWHfI1seP-00gFtm; Mon, 05 Aug 2019 21:46:05 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 2802F800A5; Mon, 5 Aug 2019 21:46:01 +0200 (CEST) From: Sven Joachim To: "Jose A. Ortega Ruiz" Subject: Re: bug#36937: 26.1; Sending mails doesn't set From: correctly References: <87pnljijap.fsf@gnus.jao.io> Date: Mon, 05 Aug 2019 21:46:01 +0200 In-Reply-To: <87pnljijap.fsf@gnus.jao.io> (Jose A. Ortega Ruiz's message of "Mon, 05 Aug 2019 19:00:46 +0100") Message-ID: <87y307xuo6.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:8bnxez1ozL4+oVwQ7/PeltZlzgAB8Mj3Haqd8gcMBRZzrT89zqF Eocx7CHIhyY5sphVboF/iOBoUHRmE7Yy0SVC3PEQrelYWMWXjCy1KDjTY/V4COwDB1ha64e 4D4lseM2YtfiNf8XpdwWqym+6T/0HO6W+0PlQiG0IT4Xsfr7RCM+bode1z31XUKEp9WM0NO ckRLxIW86lGwFz3k7o6IQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:odJuuDpJffI=:DxIkUR0B/WLlNm68PtLMm/ 7hX+wtfNxjMuEU0wXKgyxQ43AtWAOnSCeb6SeHaZbOdyXApT/PbnN8dgmMjOQNg8nMyVl4UT9 yxqNaCmTyDhZnbmE2EChx6PG55jvjZlChPWoHIYNAZ5QnhFjFxyHQCdDA1zKrolthB6DscqM+ laiU0Xr8oZdxRr+bAspwqEgTuvh98hxirFzjMmhXO12b3y7O7Rgut3++FwIY37FeXuDh4och2 +epzPDcF5D3CZGNnLQ5+W7WJyK5blSPt1So1Nw7/GIKpNwc0U1asDsD6mF+7u4SSrzo9SWK4q 6klSIxlPAzFYzq9/On55dVRq3tHxcocmYONf4RLXBph9hdAtmUANUuVhx8E8zMEbT87lYxwSm QYgDe4KIXlXBL3a08eKcCq85zoCo44+gWZKIjR7t/AJqJwyIjEhyL/fICREE5tOTMNyCowyzz /fSN1fNNj5WzSz57xu+RqT1k3NYRh1chp5X1qKsCFX6A8zoS3ljHtgSnxWwKPBoa+vhaPN7Vm k6mzZ6HBL9nO0rq5Zkk7N0f5qVRC80vSPnWnmLD9OgxXrzoCcdqpi/H9LCTXQtyqCzsVD10hZ 8M64shZzAEWKK/nr2AceyHuX8gMIZVwXFG9yjxcfk1UGtKkfANb1i7wa1rSfF/TLAT276QLNw SbHfhwuITZLq9xgtALkgyu8I1Fsuxp4rDbybiVzetG+hn5+xmc9FmRRGgFXezhhxGbAtV8Xpd p1Wcp5/CbbEYsDt3Q+jrBFALBoJNGgkR8DbYSRn5ungxQYcsDJSOUH6zJLDx6vouJVeNhNaf+ LmvbgU3qVqHtQlTBUMJwq21HMUG1PRhlRvqz1Chd8SepxnhTLwy3mUtXKVQO6DhUqJRYF7fvM PzMTw9Cu2NViXWskp9Fk2yXXuNOuXVWr67JKZrK9v1eirzQjrtfG6Ga+G9pQVxfTtcQMr7d44 2d6Q6V2gyBmUwMcjaq8OonTr4Jf1ksGmNEtkwfRVuNDFvHZDgLyEpjwN246ejxUTqzEGW4FwD 3Hwit4rWO8KMS40sEvpEICUOCk0cMgme3uIaoRxQQQ5uE/+wzGzEm7YmSG/LE2JfqeYhXLi49 v7yvZnxptFdHJpmotYGIoKE2ZAeFl/dUFwIl1V2KKySkVNSfprgzmPsFIDqcP+xKYm2wnv+hb Er/JQ= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control Cc: 36937@debbugs.gnu.org, Stefan Monnier 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.7 (-) notfound 36937 26.1 found 36937 27.0.50 thanks On 2019-08-05 19:00 +0100, Jose A. Ortega Ruiz wrote: > This problem started happening in builds from master around 4 days ago: > > - start emacs -Q > - M-x mail (or any other form of sending email) > - Set a From: value different from user@localhostname > - Send mail using local sendmail > > The mail is sent with a from header seen by postfix (i don't know about > other MTAs) as user@localhost, instead of the From: i set in the > headers. By user@localhost i mean the unix username running emacs and > the hostname as returned by hostname(1). It seems emacs is just > ignoring the value of From:, or setting it in a way postfix doesn't > understand. > > I know almost for sure it's an emacs problem because emacs 26 or an > earlier version of emacs-snapshot is working without problems. Confirmed here, although it did not prevent me personally from sending mail, since I had already set up postfix to rewrite such user@localhostname addresses back. Reverting commit 3a59cc840693 (" * lisp/gnus/message.el: Reduce redundancy with send-mail-function") fixed the problem. It looks like this commit changed some important options and looks NEWS-worthy. Stefan? Cheers, Sven From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 06 03:11:09 2019 Received: (at 36937) by debbugs.gnu.org; 6 Aug 2019 07:11:09 +0000 Received: from localhost ([127.0.0.1]:36368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hutci-0005LX-UF for submit@debbugs.gnu.org; Tue, 06 Aug 2019 03:11:09 -0400 Received: from mout.gmx.net ([212.227.17.20]:43409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hutcg-0005L1-GX for 36937@debbugs.gnu.org; Tue, 06 Aug 2019 03:11:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1565075451; bh=Y60mwx7BkkLPwLtZiZqrjECz+iSi87DG4N/+AbgN+/0=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=QQFiKKxQq3LMlMQU0p3Uzf0Tv+iIj7qKPEHiAzHlstTO1+/oqo6CoifTLIgXRiaUW 0o2eRdSScpC7xGYJERjhNsyekxmg0dq53T27OExRtVLeH+0/38zjZrxSwqRT1dhusY N6Mz4ruthAz5M0RZ64h4OsoFxwXSFWv27iOrMF3I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([79.223.36.122]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MbAgq-1iS2Vf07cu-00bajP; Tue, 06 Aug 2019 09:10:51 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 62C7F800A5; Tue, 6 Aug 2019 09:10:47 +0200 (CEST) From: Sven Joachim To: "Jose A. Ortega Ruiz" Subject: Re: bug#36937: 26.1; Sending mails doesn't set From: correctly References: <87pnljijap.fsf@gnus.jao.io> <87y307xuo6.fsf@turtle.gmx.de> Date: Tue, 06 Aug 2019 09:10:47 +0200 In-Reply-To: <87y307xuo6.fsf@turtle.gmx.de> (Sven Joachim's message of "Mon, 05 Aug 2019 21:46:01 +0200") Message-ID: <87ftmeydjc.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:h7iAj9DA7FXiL0WYC8qKjVBdD9Lvpu3ajXhMxSd8OOmmwo70hhm U6+GO0qWEiWRgT7DNPZX4vkqukW4BiwcVH0B6KgPB1SfjgrwIq5M7ag71mCPaC8L4loa/Ct wH+5JID5cuZAIAZkOHvQXpb80t9+8UMctyaI0/AJtAB2VU9YdE5RMKB3brusUU76sbABNm1 b228wR16hTG0ou5b3eiEw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:6smIkhtCSKA=:2KDhfrNYnuNoxJI6tF25hQ 1zlB9tftV9TAbHWGBrHBBa0dcJU44hohyigP9h4abfuonlqoTOEs4rSYvnKV3C+yFYT3kM+Tc pXxHHLefRBn61xEEQkFV/k61Hme2yvkCk22B0qOuUsRsivTqLouRNYIRXauU4UsCEmYRPiKi4 3q+8Tv3J5Gm68M62Xz5V0HYT7AZGCM5jG2M4opkzPXxCGlgh34kItfBDrm+OHlLetVGu1oyHG fJiVedSBuEhtnlp4eFf6mjal+dJBLwNlqHlu89Pt+AOnYqXmnoyZvP5VMDICuBMet3bqnZRqy 62tx/RyGAmmAnrUN11SUNWygvbu4GuBFwRqovxTlYQgDQv3gEBFm8vr/i+NmHKqu0QiReRv3a /UUKSc63FeqZF0GcleQyZcLOxp7hlSAUE33NB6oeGfbu0w/o6YzIslrGwgb/dFKLf4QYLG5e5 B7TYfsZ6lLt0seXsjAlIbLl0Yu3j9qBw9HCjzZJidm+XVzoSfiEjjqcXQ6GoEX1W4q/2+zdnD C7iWVHCbDJFuAfD55eBE7jBTsmZm/Ykf9QgWfnifN8km5I2PAs9pupMDIQH4m/AYN8Q4WNnPQ JcOwAiScWEohp3AqJ2LducW/8odSqBW/jKnbbZLUnWoXk/E7jZ2fAC8lt+Fbl43FQwGs1mbfi PM7XNz70g4uWjJI2PI5uShwlv7MO93XlpIXJ3CKrev2RaRn3NSUEhaEXjoG0kCxEHWBF1VcMF rZ37skCTSAXUhPmfm/3SWdFTI1ds4xqOUw/9osOKUth+OfHfA+5B1X02mpEsAqr4vud6qCojp hpP+yFzzDuzLmqu3qaaQ6zRaoOLF5phIWQ2NwMHLOrYZVmWEXABPFVq0C5bb6Gxn9HtobzXRS 1AtIQRv7EgOneZplDPL24vayl6C/SuEDmiMTTIBo4KmYqnHDfGBu8cfPkNaIw80GDNJRWEJGF PfhNngvSwaowlvSpOtOTb16hfdKEHKaNbRc8ZbvLm3xOIvQU5e/P37wgrJ04ViXpJIHz9eQQj 58CN1k1TpC0zMqmXE0xPQCvOySLihzWxzGwdQk+QIoA65qgYYFQVWDlOcDDlDKGEjzGpLC/Xd B2G659OL4IiucLvBXSfBd1ChbQNSuuGcwHBEyeYTsx0y4ktp6Rtf6nn2RdLo9y1DEOzcFeC5r /9Hs8= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36937 Cc: 36937@debbugs.gnu.org, Stefan Monnier 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.7 (-) On 2019-08-05 21:46 +0200, Sven Joachim wrote: > On 2019-08-05 19:00 +0100, Jose A. Ortega Ruiz wrote: > >> This problem started happening in builds from master around 4 days ago: >> >> - start emacs -Q >> - M-x mail (or any other form of sending email) >> - Set a From: value different from user@localhostname >> - Send mail using local sendmail >> >> The mail is sent with a from header seen by postfix (i don't know about >> other MTAs) as user@localhost, instead of the From: i set in the >> headers. By user@localhost i mean the unix username running emacs and >> the hostname as returned by hostname(1). It seems emacs is just >> ignoring the value of From:, or setting it in a way postfix doesn't >> understand. >> >> I know almost for sure it's an emacs problem because emacs 26 or an >> earlier version of emacs-snapshot is working without problems. > > Confirmed here, although it did not prevent me personally from sending > mail, since I had already set up postfix to rewrite such > user@localhostname addresses back. > > Reverting commit 3a59cc840693 (" * lisp/gnus/message.el: Reduce > redundancy with send-mail-function") fixed the problem. It looks like > this commit changed some important options and looks NEWS-worthy. Most notably, it changed the default of message-sendmail-f-is-evil, which is now t. Setting message-sendmail-f-is-evil back to nil restores the previous behavior. > Stefan? Cheers, Sven From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 06 03:20:05 2019 Received: (at 36937) by debbugs.gnu.org; 6 Aug 2019 07:20:05 +0000 Received: from localhost ([127.0.0.1]:36373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hutlK-0005Yz-Rc for submit@debbugs.gnu.org; Tue, 06 Aug 2019 03:20:05 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:7793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hutlI-0005YQ-B8 for 36937@debbugs.gnu.org; Tue, 06 Aug 2019 03:20:00 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B21C9100A37; Tue, 6 Aug 2019 03:19:54 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3A29B1009EE; Tue, 6 Aug 2019 03:19:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1565075989; bh=Z+ktP9HHunSymvHxG2NdFxeJ/J4KZe0lNrH0aKWeU2k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=X7f441nmkPmIooFZX5ToEJwFGbnc03ZfTNbPsD4LPF6rwydw3iyWUICYRgOGqzkyq TT4UbXbh9ZioMYRaH3NE+gsb/Mc3h0DHWF5JhiwvBcMI4/yIPB1iVDZGXIwZClHSfY d3m+3at6C9oRHtJTXuGn6OfDmQenb63XbibXKQZV2gqjEn9VrkB1IqA2Sj/IoGKdHL irWzdu+XnEiCqd9Sej9Uv0hN8VZspL0oPureKPxYi25SYGXeelUUbxvrSwEhm4cjE7 BCAB/xsM/fPw/zSTF5+b2j5EySKBcXD8FUhnKv06UKhhLWinPu4KQPUtjt3HaeM9EI sdPhUMA0pbCKg== Received: from alfajor (unknown [78.192.50.77]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 80EB4120C9D; Tue, 6 Aug 2019 03:19:48 -0400 (EDT) From: Stefan Monnier To: Sven Joachim Subject: Re: bug#36937: 26.1; Sending mails doesn't set From: correctly Message-ID: References: <87pnljijap.fsf@gnus.jao.io> <87y307xuo6.fsf@turtle.gmx.de> Date: Tue, 06 Aug 2019 03:19:46 -0400 In-Reply-To: <87y307xuo6.fsf@turtle.gmx.de> (Sven Joachim's message of "Mon, 05 Aug 2019 21:46:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36937 Cc: "Jose A. Ortega Ruiz" , 36937@debbugs.gnu.org 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 (-) Sven Joachim writes: > notfound 36937 26.1 > found 36937 27.0.50 > thanks > > On 2019-08-05 19:00 +0100, Jose A. Ortega Ruiz wrote: > >> This problem started happening in builds from master around 4 days ago: >> >> - start emacs -Q >> - M-x mail (or any other form of sending email) >> - Set a From: value different from user@localhostname >> - Send mail using local sendmail >> >> The mail is sent with a from header seen by postfix (i don't know about >> other MTAs) as user@localhost, instead of the From: i set in the >> headers. By user@localhost i mean the unix username running emacs and >> the hostname as returned by hostname(1). It seems emacs is just >> ignoring the value of From:, or setting it in a way postfix doesn't >> understand. >> >> I know almost for sure it's an emacs problem because emacs 26 or an >> earlier version of emacs-snapshot is working without problems. > > Confirmed here, although it did not prevent me personally from sending > mail, since I had already set up postfix to rewrite such > user@localhostname addresses back. > > Reverting commit 3a59cc840693 (" * lisp/gnus/message.el: Reduce > redundancy with send-mail-function") fixed the problem. It looks like > this commit changed some important options and looks NEWS-worthy. It is not supposed to change anything important, so this is just a bug. The weird thing is that `M-x mail` doesn't use message-mode, so it should (in theory) be unaffected by my patch which only touches message.el. Practice proves the theory wrong, tho. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 06 03:33:06 2019 Received: (at 36937) by debbugs.gnu.org; 6 Aug 2019 07:33:07 +0000 Received: from localhost ([127.0.0.1]:36392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hutxy-0005v4-M9 for submit@debbugs.gnu.org; Tue, 06 Aug 2019 03:33:06 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hutxw-0005ub-Ri for 36937@debbugs.gnu.org; Tue, 06 Aug 2019 03:33:05 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7443A445E78; Tue, 6 Aug 2019 03:32:59 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 3368F445E74; Tue, 6 Aug 2019 03:32:57 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1565076777; bh=TFGD9YwdWRAL6tDIiEpo+9i6uFiWY9Mf3p7LkuRkjdQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=gormf1OlZNr2udhv/CPvNCx5xPcLMpfHEN+OJe6p8b9gtlxSNhCktw7xfnMjHEGqb a4Zqix6zAkD2JTeZay2VEAobnmNdl9wHmWLY8Q9EDCFzjiL02hUUHYj77Dg1xFi1bn LM7hFuE0jtpbx++5YLQV+SacrVRfimeJwlPsnqQl98rXnLSW6ESAqqiQlgxhsXj+na lOfkKoZ+0WCnmMOB1RCK6uluzp+GCGo2j2H2MSvszDbVLstSz2fnN/r81O0eaFgzzs 6Psk9zuYidy2gM+wohSEKtVe2tmeTx15C6BEV6vkYXXzUGrN8zKj6i811AKP1AXFwj 4Y/yC6DJEHdoQ== Received: from alfajor (unknown [78.192.50.77]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9423E120F28; Tue, 6 Aug 2019 03:32:56 -0400 (EDT) From: Stefan Monnier To: Sven Joachim Subject: Re: bug#36937: 26.1; Sending mails doesn't set From: correctly Message-ID: References: <87pnljijap.fsf@gnus.jao.io> <87y307xuo6.fsf@turtle.gmx.de> <87ftmeydjc.fsf@turtle.gmx.de> Date: Tue, 06 Aug 2019 03:32:55 -0400 In-Reply-To: <87ftmeydjc.fsf@turtle.gmx.de> (Sven Joachim's message of "Tue, 06 Aug 2019 09:10:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.159 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36937 Cc: "Jose A. Ortega Ruiz" , 36937@debbugs.gnu.org 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 (-) >>> This problem started happening in builds from master around 4 days ago: >>> >>> - start emacs -Q >>> - M-x mail (or any other form of sending email) >>> - Set a From: value different from user@localhostname >>> - Send mail using local sendmail >>> >>> The mail is sent with a from header seen by postfix (i don't know about >>> other MTAs) as user@localhost, instead of the From: i set in the >>> headers. By user@localhost i mean the unix username running emacs and >>> the hostname as returned by hostname(1). It seems emacs is just >>> ignoring the value of From:, or setting it in a way postfix doesn't >>> understand. >>> >>> I know almost for sure it's an emacs problem because emacs 26 or an >>> earlier version of emacs-snapshot is working without problems. >> >> Confirmed here, although it did not prevent me personally from sending >> mail, since I had already set up postfix to rewrite such >> user@localhostname addresses back. >> >> Reverting commit 3a59cc840693 (" * lisp/gnus/message.el: Reduce >> redundancy with send-mail-function") fixed the problem. It looks like >> this commit changed some important options and looks NEWS-worthy. > > Most notably, it changed the default of message-sendmail-f-is-evil, > which is now t. Indeed, I aligned it with mail-specify-envelope-from. I guess I should revert this part. But I'm still perplexed: `M-x mail` shouldn't pay any attention to message-sendmail-f-is-evil when sending the message. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 06 04:35:11 2019 Received: (at 36937) by debbugs.gnu.org; 6 Aug 2019 08:35:11 +0000 Received: from localhost ([127.0.0.1]:36456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huuw3-0007Vg-Dz for submit@debbugs.gnu.org; Tue, 06 Aug 2019 04:35:11 -0400 Received: from mout.gmx.net ([212.227.15.19]:60119) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huuw1-0007VQ-Ar for 36937@debbugs.gnu.org; Tue, 06 Aug 2019 04:35:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1565080485; bh=pDped3N2TJCJk0I+XtXpzYUMdgp8RCBzgr5en8A8mtg=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=D93C32IoxSwFVkJmvpWviD63WCv6EIKClOXd0FpfPnpuNeosOMCz/qvStk6kl4pO6 idCkDbQP+bWKnKp18FBHmiQ3A9qi8KK8jEnXnmZHgwOoRuo8xsRAToqbECh9YbYwxR wvM4BUX4pitNEcGqWjNefEUdJ1r+e19lHZhG9BIo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([79.223.36.122]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lgql4-1ij3Fj1pnK-00oHPB; Tue, 06 Aug 2019 10:34:45 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 2DE46800A5; Tue, 6 Aug 2019 10:34:41 +0200 (CEST) From: Sven Joachim To: Stefan Monnier Subject: Re: bug#36937: 26.1; Sending mails doesn't set From: correctly References: <87pnljijap.fsf@gnus.jao.io> <87y307xuo6.fsf@turtle.gmx.de> <87ftmeydjc.fsf@turtle.gmx.de> Date: Tue, 06 Aug 2019 10:34:41 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 06 Aug 2019 03:32:55 -0400") Message-ID: <875znay9ni.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:soJPFXgyXvpLpKjFBOtIEaAqnEogVU9dBR8pP99wjCrPkn5dqBi +jpliYlpl/CKWty6KpznXO/OBVVmwSYGMjfpguHiDNpod65jMaZuB0Z5LwrMAmsbIJbf+5M kztRDBYf7om82fNSxZ+SBljq9WMrpo/rIdo9uF2Djrw9Ikr8q1k8PE/1V4rO+cGWSgfK5LF FfqexojH225ZMYoHKnoMQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:n7JtX6V7jQc=:WESBidh5jNr5LzvAQpPWUo ahGYaiUZGC9aOUNgm04QU7CEhhc/R2iC5vU5+D2ZszXW5j1WS5MUbltwB487J9VM6q8FhScj0 tTol/efVmjOOJ+fiwNev790/3Y7aAwf+jCzQVUc3wKfRkghXbh4hXh1hHHmiSYQ80Yn2XYEy6 DqVB1bUg3q6eprrLEfJIpeIaGj8C/eTNqYRFRaNGQkDBnEJDBMe7XNdfo+Glv5vppLnbFfyNh L1JqRDFlQObXAjBq+sYnRche8KPUUSbERm76ICPa4xEyjk5ETOtc/DQSHGe0JunmxDMRir+zZ Bmvd3UvgygmTg2xj1XxiVu2dHD+UWSe6BAyyl/6SNmuR2U/JsFV0DJ3pZ/rb7b9FaUuJyEVEl 4iUHn5g4/wfdbwhjtZkCpoOquIWFPT2iAswAnTENZUbuKia7zG7Fd97k6MKEaEXPjOdHaImkR IMDq/O7f0sMupp0H8TEq9Dj4TElSiEDPZKlmBtBKghS/2jz1bduXbd06LZe4Fl2HFtlSO55XE nbhETbBcbS4edud5VkmLRwIFHugrLsz5geI4uMXYN1RrdFYLlKxxJemGWve9vb0m5Y6iZf+Mt hZr0j+WXWjAawZqSd5f1PGuj2Dnpb7dL63aKqi+jhCb+CdZ7xB/HVp+IXj5FMwvEzHiNHrFsZ A5U7qiuDc6Ah/WNhhiNB2S5WNwGLfsTDhRPUm+Hu8wSXrLOmv6qL1F/dTwynZI2qOOGWZDQgh DwpyBJ8PYJoI0v1go36CfAoQ+VC3QD+yGOG0A3Sj8ESA5iLdSPo1uURp2tLEtaeGG+3/F4Eak n/hAs1i3C7xD0mxdXYYGG+B1TtmrUwX/XjBm5XW9EF4ffi1QZLiNPNXZ2mnIqcqaiPnG7qrzE cMAYpsyD42YfqAFkTDN/5FKUdHVB1w9M8TBawBkU10x5d71HKWMn0Cw775wpPVsS02Ig9YBF0 11/LnH36kIr/uEk9/X9Zc2QP96u/01mwrF9rXCigo483qwQjKQmUl97N6yWnjy4Gd0KxLNNPI 1Y3Vn5+8zLVvad0YXLyRekk3W4/3uMHtS6plHfNJiy5SxY0uizb7K14B7mOB8i6F1w3ovH0E9 XK5ziaiJR8qlJes5A0WvYfxAdQD/oA9cJnUFH2MM2uZknVuQuSm5hsloY7ciAyNj4lmP4XQ4k /oHKA= Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36937 Cc: "Jose A. Ortega Ruiz" , 36937@debbugs.gnu.org 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 (-) On 2019-08-06 03:32 -0400, Stefan Monnier wrote: >>>> This problem started happening in builds from master around 4 days ag= o: >>>> >>>> - start emacs -Q >>>> - M-x mail (or any other form of sending email) >>>> - Set a From: value different from user@localhostname >>>> - Send mail using local sendmail >>>> >>>> The mail is sent with a from header seen by postfix (i don't know abo= ut >>>> other MTAs) as user@localhost, instead of the From: i set in the >>>> headers. By user@localhost i mean the unix username running emacs an= d >>>> the hostname as returned by hostname(1). It seems emacs is just >>>> ignoring the value of From:, or setting it in a way postfix doesn't >>>> understand. >>>> >>>> I know almost for sure it's an emacs problem because emacs 26 or an >>>> earlier version of emacs-snapshot is working without problems. >>> >>> Confirmed here, although it did not prevent me personally from sending >>> mail, since I had already set up postfix to rewrite such >>> user@localhostname addresses back. >>> >>> Reverting commit 3a59cc840693 (" * lisp/gnus/message.el: Reduce >>> redundancy with send-mail-function") fixed the problem. It looks like >>> this commit changed some important options and looks NEWS-worthy. >> >> Most notably, it changed the default of message-sendmail-f-is-evil, >> which is now t. > > Indeed, I aligned it with mail-specify-envelope-from. > I guess I should revert this part. But I'm still perplexed: `M-x mail` > shouldn't pay any attention to message-sendmail-f-is-evil when sending > the message. Oh, I think it actually does not. I almost always use Gnus, or otherwise C-x m aka compose-mail which uses message-mode. With M-x mail, message-sendmail-f-is-evil does not seem to have an effect, postfix always sees the user@localhost address then. And this is even the case in the emacs-26 branch. Jose, did you actually use "M-x mail", or did you use something else which uses message-mode to compose and send the mail? Cheers, Sven From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 06 11:04:29 2019 Received: (at 36937) by debbugs.gnu.org; 6 Aug 2019 15:04:29 +0000 Received: from localhost ([127.0.0.1]:37643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hv10m-00038W-Fc for submit@debbugs.gnu.org; Tue, 06 Aug 2019 11:04:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hv10k-00038I-Ed for 36937@debbugs.gnu.org; Tue, 06 Aug 2019 11:04:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hv10Z-0000RE-SL; Tue, 06 Aug 2019 11:04:17 -0400 Received: from cpc103058-sgyl39-2-0-cust254.18-2.cable.virginm.net ([94.173.216.255]:37474 helo=imladris.local) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1hv10X-0006YY-R9; Tue, 06 Aug 2019 11:04:15 -0400 Received: by imladris.local (Postfix, from userid 1000) id 5988132086E; Tue, 6 Aug 2019 16:04:11 +0100 (BST) From: "Jose A. Ortega Ruiz" To: "Stefan Monnier" , "Sven Joachim" Subject: Re: bug#36937: 26.1; Sending mails doesn't set From: correctly In-Reply-To: <875znaid0j.fsf@gnus.jao.io> (Jose A. Ortega Ruiz's message of "Tue, 06 Aug 2019 15:28:44 +0100") References: <87pnljijap.fsf@gnus.jao.io> <87y307xuo6.fsf@turtle.gmx.de> <87ftmeydjc.fsf@turtle.gmx.de> <875znay9ni.fsf@turtle.gmx.de> <875znaid0j.fsf@gnus.jao.io> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Tue, 06 Aug 2019 16:04:11 +0100 Message-ID: <87y306fi8k.fsf@gnus.jao.io> 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36937 Cc: 36937@debbugs.gnu.org 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: -3.3 (---) On Tue, Aug 06 2019, Jose A. Ortega Ruiz wrote: > On Tue, Aug 06 2019, Sven Joachim wrote: > > [...] > >> Oh, I think it actually does not. I almost always use Gnus, or >> otherwise C-x m aka compose-mail which uses message-mode. With >> M-x mail, message-sendmail-f-is-evil does not seem to have an effect, >> postfix always sees the user@localhost address then. And this is even >> the case in the emacs-26 branch. >> >> Jose, did you actually use "M-x mail", or did you use something else >> which uses message-mode to compose and send the mail? > > I was using M-x mail. I observed it first with message-mode, though > (normally invoked from Gnus), but i'm almost sure it's happened with > mail too. Here in emacs-26, i've got message-sendmail-f-is-evil nil, > and things are working properly (in that postfix is seeing the From: > address... i use that to multiplex over several smtp servers). Sorry, what i said before was not true. In emacs-27, M-x mail is working just fine (i.e., the correct From: address is seen by postfix). The problem only happens when using message-mode (either via Gnus or simply via M-x message-mail) to send the email. Setting message-sendmail-f-is-evil back to nil fixes it for me too. And setting it to t in emacs-26 reproduces the (to me) bad behaviour too. Cheers, jao From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 06 20:44:05 2019 Received: (at 36937-done) by debbugs.gnu.org; 7 Aug 2019 00:44:05 +0000 Received: from localhost ([127.0.0.1]:37978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvA3g-0004KH-O7 for submit@debbugs.gnu.org; Tue, 06 Aug 2019 20:44:04 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvA3e-0004Jf-R4 for 36937-done@debbugs.gnu.org; Tue, 06 Aug 2019 20:44:03 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 6B7D685AD2; Tue, 6 Aug 2019 20:43:57 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 395698122F; Tue, 6 Aug 2019 20:43:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1565138636; bh=ce5+ToyKycYQZUf/dw1Wi9VLN46NDMkY3Ff6BP8HgJk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=HyIRlZ1KW05GopkiuMVnIptnYgVNQPwZGfxxlMfpf/pmkqbMZxrnGfKwdbZaIUaMy XyRC9nh/yOsZAcjQnwPnb2JxN+RdWQw93/+l466Pc3JzP3EdR4mQHSIt14SwuYHaqg tHBh3/I9MAjWdpR/HDIddbGeq1JwRW5qm+NI8t+gf1IJVPO2bj9BweoaHNOAvmcskc tNGm1xZ8g08d5J4lcd0gL9tm/6wi1/I9JNHi3GNMlNBqpb65bJm+reYSGj0DqK1q29 WJDXxF9sb0RQQupaDsbdtNzqi8BnzzLtu1MA3j9y7T7wiacjygQ3KHaMtOVA8HwMb3 +Uxnogc3s/fyA== Received: from alfajor (unknown [78.192.50.77]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9ADB4120F2E; Tue, 6 Aug 2019 20:43:55 -0400 (EDT) From: Stefan Monnier To: "Jose A. Ortega Ruiz" Subject: Re: bug#36937: 26.1; Sending mails doesn't set From: correctly Message-ID: References: <87pnljijap.fsf@gnus.jao.io> <87y307xuo6.fsf@turtle.gmx.de> <87ftmeydjc.fsf@turtle.gmx.de> <875znay9ni.fsf@turtle.gmx.de> <875znaid0j.fsf@gnus.jao.io> <87y306fi8k.fsf@gnus.jao.io> Date: Tue, 06 Aug 2019 20:43:53 -0400 In-Reply-To: <87y306fi8k.fsf@gnus.jao.io> (Jose A. Ortega Ruiz's message of "Tue, 06 Aug 2019 16:04:11 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36937-done Cc: Sven Joachim , 36937-done@debbugs.gnu.org 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 (-) > In emacs-27, M-x mail is working just fine (i.e., the correct From: > address is seen by postfix). The problem only happens when using > message-mode (either via Gnus or simply via M-x message-mail) to send > the email. Setting message-sendmail-f-is-evil back to nil fixes it for > me too. And setting it to t in emacs-26 reproduces the (to me) bad > behaviour too. Thank you for testing. I've reverted this part of the change, so message-sendmail-f-is-evil is always nil, as before. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 07 09:47:51 2019 Received: (at 36937-done) by debbugs.gnu.org; 7 Aug 2019 13:47:51 +0000 Received: from localhost ([127.0.0.1]:38200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvMIA-0001yq-Mv for submit@debbugs.gnu.org; Wed, 07 Aug 2019 09:47:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvMI9-0001yb-AO for 36937-done@debbugs.gnu.org; Wed, 07 Aug 2019 09:47:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hvMI0-0007Ea-CH; Wed, 07 Aug 2019 09:47:42 -0400 Received: from cpc103058-sgyl39-2-0-cust254.18-2.cable.virginm.net ([94.173.216.255]:42378 helo=imladris.local) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1hvMHw-0007Zn-N1; Wed, 07 Aug 2019 09:47:38 -0400 Received: by imladris.local (Postfix, from userid 1000) id EC7F3320895; Wed, 7 Aug 2019 14:47:33 +0100 (BST) From: "Jose A. Ortega Ruiz" To: "Stefan Monnier" Subject: Re: bug#36937: 26.1; Sending mails doesn't set From: correctly In-Reply-To: (Stefan Monnier's message of "Tue, 06 Aug 2019 20:43:53 -0400") References: <87pnljijap.fsf@gnus.jao.io> <87y307xuo6.fsf@turtle.gmx.de> <87ftmeydjc.fsf@turtle.gmx.de> <875znay9ni.fsf@turtle.gmx.de> <875znaid0j.fsf@gnus.jao.io> <87y306fi8k.fsf@gnus.jao.io> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Wed, 07 Aug 2019 14:47:33 +0100 Message-ID: <87tvat140a.fsf@gnus.jao.io> 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36937-done Cc: Sven Joachim , 36937-done@debbugs.gnu.org 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: -3.3 (---) On Tue, Aug 06 2019, Stefan Monnier wrote: > Thank you for testing. I've reverted this part of the change, so > message-sendmail-f-is-evil is always nil, as before. Thanks a lot, guys. It's always a pleasure to report emacs bugs, because of responsiveness and swiftness such as yours :) jao From unknown Wed Aug 20 01:17:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Sep 2019 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator