From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ed Sabol via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#38200: 26.2; sendmail.el needlessly munging headers by inserting backslashes Date: Wed, 13 Nov 2019 16:51:08 -0500 (EST) Message-ID: <20191113215108.EA66E203EC@alderaan.gsfc.nasa.gov> Reply-To: Ed Sabol , Ed Sabol Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="34911"; mail-complaints-to="usenet@blaine.gmane.org" To: 38200@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 13 23:01:35 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iV0hi-0008pe-K6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Nov 2019 23:01:35 +0100 Original-Received: from localhost ([::1]:51492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iV0hh-0006Jz-0s for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Nov 2019 17:01:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54910) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iV0hG-0006JV-OD for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 17:01:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iV0hE-0007Im-8S for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 17:01:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51484) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iV0hC-0007IF-4I for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 17:01:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iV0hC-0000Vq-0X for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 17:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ed Sabol Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Nov 2019 22:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38200 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157368242532461 (code B ref -1); Wed, 13 Nov 2019 22:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Nov 2019 22:00:25 +0000 Original-Received: from localhost ([127.0.0.1]:60305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV0gZ-0008OC-7c for submit@debbugs.gnu.org; Wed, 13 Nov 2019 17:00:25 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV0Xm-0007tR-D8 for submit@debbugs.gnu.org; Wed, 13 Nov 2019 16:51:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48588) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iV0Xk-0003TZ-5D for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 16:51:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iV0Xi-00071C-FL for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 16:51:15 -0500 Original-Received: from bigbang.gsfc.nasa.gov ([128.183.16.133]:51298) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iV0Xg-0006zn-8c for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 16:51:14 -0500 Original-Received: from alderaan.gsfc.nasa.gov (alderaan.gsfc.nasa.gov [128.183.53.160]) by bigbang.gsfc.nasa.gov (8.15.2/8.15.2) with ESMTP id xADLp9Ys056769; Wed, 13 Nov 2019 16:51:09 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 bigbang.gsfc.nasa.gov xADLp9Ys056769 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bigbang.gsfc.nasa.gov; s=bigbang-2018-09; t=1573681870; bh=+MxpW0VgZeDTz5IIEEymVFYmqZN6tpYqWpSwiWD9hUk=; h=From:To:Subject:Reply-To:Date:From; b=gZ4eueRD6spCcBic0O7atwwsNQF3xLaUzLmfeNj3DPnd/PYy+Bp7GXEVr+l0yo2KV itFCgweBeKh54sgWpL0gyPUA54y84nmmatJPrlU6va2+5iSJYrVvaS4655EpoJ8PU7 z0CwclYo6JCP6AgUTg/sNolTGnf/Xif1WjAqOt4Y= Original-Received: by alderaan.gsfc.nasa.gov (Postfix, from userid 679) id EA66E203EC; Wed, 13 Nov 2019 16:51:08 -0500 (EST) X-Greylist: inspected by milter-greylist-4.5.12 (bigbang.gsfc.nasa.gov [128.183.16.133]); Wed, 13 Nov 2019 16:51:09 -0500 (EST) for IP:'128.183.53.160' DOMAIN:'alderaan.gsfc.nasa.gov' HELO:'alderaan.gsfc.nasa.gov' FROM:'edward.j.sabol@nasa.gov' RCPT:'' X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.5.12 (bigbang.gsfc.nasa.gov [128.183.16.133]); Wed, 13 Nov 2019 16:51:09 -0500 (EST) X-Scanned-By: MIMEDefang 2.84 on 128.183.16.133 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Mailman-Approved-At: Wed, 13 Nov 2019 17:00:21 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:171514 Archived-At: Steps: 1. Evaluate the following: (setq mail-user-agent 'sendmail-user-agent) (setq send-mail-function 'sendmail-send-it) 2. Hit `C-x m' or `M-x compose-mail'. 3. In the To: header type the following: "LastName, FirstName I. (CODE-999.9)[CONTRACTOR COMPANY INC]" except replace "your_email@address.com" with your actual email address. 4. Put "test" in the Subject: header. 5. Add a "Bcc:" header with your actual email address. 6. In the body of the email, put "test". 7. Hit `C-c C-c' or `M-x mail-send' to send the email. Result: When you receive the sent email, the To: header of the email will look like so: "LastName\, FirstName I. \(CODE-999.9\)\[CONTRACTING COMPANY INC\]" It should like like this: "LastName, FirstName I. (CODE-999.9)[CONTRACTING COMPANY INC]" At some point, something in sendmail.el changed between Emacs version 21.2 and 26.2 that resulted in these backslashes being added. According to RFC822 and other email standards, these backslashes are not needed. Emacs should not be modifying the headers of emails needlessly. In GNU Emacs 26.2 (build 2, x86_64-pc-linux-gnu, X toolkit) of 2019-04-12 built on heasarcdev Windowing system distributor 'Scientific Linux', version 11.0.11704000 System Description: Scientific Linux release 6.10 (Carbon) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [2 times] Sending...done Configured using: 'configure --prefix=/software/usr/contrib --exec-prefix=/software/usr/contrib/linux-6.x --with-x-toolkit=athena --with-toolkit-scroll-bars=no --with-jpeg=no --with-gif=no --with-tiff=no --with-gnutls=no' Configured features: XAW3D XPM PNG SOUND GSETTINGS GLIB NOTIFY LIBSELINUX LIBXML2 FREETYPE XFT ZLIB LUCID X11 XDBE XIM THREADS Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none 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 emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader mailalias sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date mule-util 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 inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 95678 7833) (symbols 48 19846 1) (miscs 40 54 168) (strings 32 29174 958) (string-bytes 1 769837) (vectors 16 14705) (vector-slots 8 503996 12136) (floats 8 53 115) (intervals 56 272 0) (buffers 992 9) (heap 1024 28666 935))