From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 13 17:00:25 2019 Received: (at submit) by debbugs.gnu.org; 13 Nov 2019 22:00:25 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=disabled version=3.3.2 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 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 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= Received: by alderaan.gsfc.nasa.gov (Postfix, from userid 679) id EA66E203EC; Wed, 13 Nov 2019 16:51:08 -0500 (EST) From: Ed Sabol To: bug-gnu-emacs@gnu.org Subject: 26.2; sendmail.el needlessly munging headers by inserting backslashes Message-Id: <20191113215108.EA66E203EC@alderaan.gsfc.nasa.gov> Date: 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-Received-From: 128.183.16.133 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ed Sabol Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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)) From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 00:00:14 2019 Received: (at 38200) by debbugs.gnu.org; 14 Nov 2019 05:00:14 +0000 Received: from localhost ([127.0.0.1]:60586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV7EV-0007Uj-Q6 for submit@debbugs.gnu.org; Wed, 13 Nov 2019 23:59:52 -0500 Received: from quimby.gnus.org ([95.216.78.240]:48780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV7ET-0007UV-RC for 38200@debbugs.gnu.org; Wed, 13 Nov 2019 23:59:50 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iV7EI-0000Mj-Gm; Thu, 14 Nov 2019 05:59:41 +0100 From: Lars Ingebrigtsen To: Ed Sabol Subject: Re: bug#38200: 26.2; sendmail.el needlessly munging headers by inserting backslashes References: <20191113215108.EA66E203EC@alderaan.gsfc.nasa.gov> Date: Thu, 14 Nov 2019 05:59:37 +0100 In-Reply-To: <20191113215108.EA66E203EC@alderaan.gsfc.nasa.gov> (Ed Sabol's message of "Wed, 13 Nov 2019 16:51:08 -0500 (EST)") Message-ID: <87woc3rr2e.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: Ed Sabol writes: > 1. Evaluate the following: > (setq mail-user-agent 'sendmail-user-agent) > (setq send-mail-function 'sendmail-send-it) [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38200 Cc: Katsumi Yamaoka , 38200@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 (-) Ed Sabol writes: > 1. Evaluate the following: > (setq mail-user-agent 'sendmail-user-agent) > (setq send-mail-function 'sendmail-send-it) [...] > "LastName\, FirstName I. \(CODE-999.9\)\[CONTRACTING COMPANY INC\]" > > > It should like like this: > > "LastName, FirstName I. (CODE-999.9)[CONTRACTING COMPANY INC]" > This isn't due to sendmail or anything, but because (defcustom rfc2047-header-encoding-alist [...] ("\\(Resent-\\)?\\(From\\|Cc\\|To\\|Bcc\\|\\(In-\\)?Reply-To\\|Sender\ \\|Mail-Followup-To\\|Mail-Copies-To\\|Approved\\)" . address-mime) and (when (eq method 'address-mime) (rfc2047-quote-special-characters-in-quoted-strings)) > 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. I've been perusing the relevant RFCs, but I can't find anything about having to quote commas and parentheses in quoted-strings. It's not disallowed, either -- the RFC says 3.2.1. Quoted characters Some characters are reserved for special interpretation, such as delimiting lexical tokens. To permit use of these characters as uninterpreted data, a quoting mechanism is provided. quoted-pair = ("\" (VCHAR / WSP)) / obs-qp Where any quoted-pair appears, it is to be interpreted as the character alone. That is to say, the "\" character that appears as part of a quoted-pair is semantically "invisible". so you can put a backslash in anywhere you want, basically, and it should make no semantic difference. But I'm not sure why this was added (in 2006). Perhaps some MTAs/MUAs react negatively to having those characters unquoted in strings? It looks like this was added by Katsumi, but the changelog doesn't say what problem it's trying to fix. Katsumi, do you remember? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 02:30:22 2019 Received: (at 38200) by debbugs.gnu.org; 14 Nov 2019 07:30:22 +0000 Received: from localhost ([127.0.0.1]:60846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV9a9-0004Zo-Ge for submit@debbugs.gnu.org; Thu, 14 Nov 2019 02:30:22 -0500 Received: from bonobo.birch.relay.mailchannels.net ([23.83.209.22]:16205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV9a7-0004Ze-08 for 38200@debbugs.gnu.org; Thu, 14 Nov 2019 02:30:19 -0500 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9E49B22241; Thu, 14 Nov 2019 07:30:17 +0000 (UTC) Received: from hampton.hostforweb.net (100-96-60-110.trex.outbound.svc.cluster.local [100.96.60.110]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id B512722263; Thu, 14 Nov 2019 07:30:16 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from hampton.hostforweb.net ([TEMPUNAVAIL]. [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Thu, 14 Nov 2019 07:30:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Ski-Shrill: 71dfd82f5c62868f_1573716617355_1249423242 X-MC-Loop-Signature: 1573716617355:2308032920 X-MC-Ingress-Time: 1573716617355 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1iV9Zw-00916i-OR; Thu, 14 Nov 2019 01:30:09 -0600 Date: Thu, 14 Nov 2019 16:30:04 +0900 Message-ID: From: Katsumi Yamaoka To: Lars Ingebrigtsen Subject: Re: bug#38200: 26.2; sendmail.el needlessly munging headers by inserting backslashes References: <20191113215108.EA66E203EC@alderaan.gsfc.nasa.gov> <87woc3rr2e.fsf@gnus.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-cygwin) Cancel-Lock: sha1:jeotfp4OXPYUagJAdSqKI5yeKdQ= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38200 Cc: Ed Sabol , 38200@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 Thu, 14 Nov 2019 05:59:37 +0100, Lars Ingebrigtsen wrote: > But I'm not sure why this was added (in 2006). Perhaps some MTAs/MUAs > react negatively to having those characters unquoted in strings? It > looks like this was added by Katsumi, but the changelog doesn't say what > problem it's trying to fix. > Katsumi, do you remember? I don't remember why I added the function `rfc2047-quote-special-characters-in-quoted-strings' at all. So do I about `rfc2047-strip-backslashes-in-quoted-strings' either, sorry. But as for at least rfc2047-quote-*, it looks surely needless. With some brief tests, I verified the address-mime encoder works without it. Even if it is necessary for some cases, it would probably be very rare, so I'd like to remove it now. May I do that? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 02:34:39 2019 Received: (at 38200) by debbugs.gnu.org; 14 Nov 2019 07:34:39 +0000 Received: from localhost ([127.0.0.1]:60850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV9eJ-0004fo-65 for submit@debbugs.gnu.org; Thu, 14 Nov 2019 02:34:39 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV9eG-0004fa-JB for 38200@debbugs.gnu.org; Thu, 14 Nov 2019 02:34:37 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iV9e5-0001Tw-3a; Thu, 14 Nov 2019 08:34:27 +0100 From: Lars Ingebrigtsen To: Katsumi Yamaoka Subject: Re: bug#38200: 26.2; sendmail.el needlessly munging headers by inserting backslashes References: <20191113215108.EA66E203EC@alderaan.gsfc.nasa.gov> <87woc3rr2e.fsf@gnus.org> Date: Thu, 14 Nov 2019 08:34:24 +0100 In-Reply-To: (Katsumi Yamaoka's message of "Thu, 14 Nov 2019 16:30:04 +0900") Message-ID: <87h836oqrj.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: Katsumi Yamaoka writes: > I don't remember why I added the function > `rfc2047-quote-special-characters-in-quoted-strings' at all. So > do I about `rfc2047-strip-backslashes-in-quoted-strings' either, > sorry. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -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: 38200 Cc: Ed Sabol , 38200@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 (-) Katsumi Yamaoka writes: > I don't remember why I added the function > `rfc2047-quote-special-characters-in-quoted-strings' at all. So > do I about `rfc2047-strip-backslashes-in-quoted-strings' either, > sorry. I seem to vaguely recall there perhaps being a problem with things like From: "Foo, Bar" , zot@foo.com being tokenized into three email addresses Foo Bar zot@foo.com But on the other hand, if there's anything that broken out there, you'd think that adding a backslash before the comma wouldn't help, either. > But as for at least rfc2047-quote-*, it looks surely > needless. With some brief tests, I verified the address-mime > encoder works without it. Even if it is necessary for some cases, > it would probably be very rare, so I'd like to remove it now. > May I do that? Sure, go ahead. If there's any interoperability problems here, we'll find out. But I think it's pretty unlikely. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 03:05:52 2019 Received: (at 38200) by debbugs.gnu.org; 14 Nov 2019 08:05:52 +0000 Received: from localhost ([127.0.0.1]:60883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVA8W-0005S1-Fa for submit@debbugs.gnu.org; Thu, 14 Nov 2019 03:05:52 -0500 Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:33822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVA8U-0005Rs-Hk for 38200@debbugs.gnu.org; Thu, 14 Nov 2019 03:05:51 -0500 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CD3252187E; Thu, 14 Nov 2019 08:05:48 +0000 (UTC) Received: from hampton.hostforweb.net (100-96-169-194.trex.outbound.svc.cluster.local [100.96.169.194]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id A9A6B212AE; Thu, 14 Nov 2019 08:05:47 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from hampton.hostforweb.net ([TEMPUNAVAIL]. [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Thu, 14 Nov 2019 08:05:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Suffer-Tangy: 15cae8e2438a3de2_1573718748397_923609442 X-MC-Loop-Signature: 1573718748397:1596712611 X-MC-Ingress-Time: 1573718748397 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1iVA8J-0098Xi-3g; Thu, 14 Nov 2019 02:05:40 -0600 Date: Thu, 14 Nov 2019 17:05:34 +0900 Message-ID: From: Katsumi Yamaoka To: Lars Ingebrigtsen Subject: Re: bug#38200: 26.2; sendmail.el needlessly munging headers by inserting backslashes References: <20191113215108.EA66E203EC@alderaan.gsfc.nasa.gov> <87woc3rr2e.fsf@gnus.org> <87h836oqrj.fsf@gnus.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-cygwin) Cancel-Lock: sha1:7SIiw6066GXdQsWZ5AEbN6HYG/o= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38200 Cc: Ed Sabol , 38200@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 Thu, 14 Nov 2019 08:34:24 +0100, Lars Ingebrigtsen wrote: > I seem to vaguely recall there perhaps being a problem with things > like > From: "Foo, Bar" , zot@foo.com > being tokenized into three email addresses > Foo > Bar > zot@foo.com > But on the other hand, if there's anything that broken out there, you'd > think that adding a backslash before the comma wouldn't help, either. Sure. Mail agents do not know what backslashes like to do. > Katsumi Yamaoka writes: >> But as for at least rfc2047-quote-*, it looks surely >> needless. With some brief tests, I verified the address-mime >> encoder works without it. Even if it is necessary for some cases, >> it would probably be very rare, so I'd like to remove it now. >> May I do that? > Sure, go ahead. If there's any interoperability problems here, we'll > find out. But I think it's pretty unlikely. Done in master. Thanks. Ed, a patch for Emacs 26.2 is attached. Regards, --=-=-= Content-Type: application/x-gunzip Content-Disposition: attachment; filename=remove-rfc2047-quote-special-characters-in-quoted-strings.patch.gz Content-Transfer-Encoding: base64 H4sICEkIzV0CA3JlbW92ZS1yZmMyMDQ3LXF1b3RlLXNwZWNpYWwtY2hhcmFjdGVycy1pbi1xdW90 ZWQtc3RyaW5ncy5wYXRjaACdVt+P2zYMfrb/CiIDFrs+XZNc2ktTYLt2Pexl2I+iwAZcWlS2ldio Lfksude87G8fKcuxneS2rnlJIooU+ZEfSQCAt6JUnwXU22QxW16z+0YZwXQlkpwXLMl4zRMjas1y 2cpSpk2dy52GIG52312tFrNZ6PtoCZ5Akevqacnz4qmzdykKKwr+v/1w3fm2bWRiciUvx6aETFQq WCm05jvBMsFTUV/AkbgWO1RFY2+UnBpotIDcXPo+Y+ysu397i9n8BZst2GIG86v1crleLiCa4ceP ouisTqsyn7P5EmbX6+X1et6p3NwAm6+WF8+eQUTfz+HmxoZhI0EkBK+TjG1V/cDrFCbrO9iYjXz/ ZAIyL8CEh8txs92KmukmbgFiUrGqVpWoTS4wG5XKpQndNyv5l5A+PvgsSAVC+E0p/l5VhDwvfOa1 H3TFIsvjwoIrvlShzwAmf5AqOLPQm4WH3GTwcbOZasgltC+Ae+HSZ6SHP/FaUYBUBmIBqZKCLvPx dci3mDxIlDQ8l3rwiI8BmySjO7e//vTbm1evf7llb29/vv3rd1A1KeWtI2i04rWQJhNa6MsJuR7s lFEWiAN6uQxtVEEhDASBcWEhIvh4wg1M7iaQC7Nlad2UmvUXJu8npOoF2vDadGmhk1jsELrU2kXL 5A3TewzlCzOEJpCKTLEMRsfuPmlkOd0ijAKh4qp9BzEJ8p1UWEyirhVh4TkFV1UMa9bAPOwF4h4D wXhZLPCOCOHHTRh28rEac3pnQLIlZkPln6kWKEmWqK2C5OjOA0OtloNwgsjIqpW6UxfpMTk2kwMr nKtamHsgYAObf4xnl0tJZTDr42lkgT3iJGrSo8g3A2B6d0jYn/fvzCMrGsiwItKcwmYJx+6CDhJZ UIDs3Mn29wBV3TLGGwSAVYGG2QGaXnziT3tMOcdSOWGiZeljveX4sn22TYTnDdOLIVKdHp4jN08z jDonGe5LnMQui6ee9GyhbE6pyYfOdRvamfLchH1s7aVCqU/UBpGMB3shvHwJr4oaR8HetY7LtnMN EkCWW2tIHqmxf2JlbSZh/8IQjPN11eVhoN6fjh4KRzgeiUgSWNbaO0fpDsPwv7l3yvG2psZka035 QKPgM5oZDUlC0ewrAVOepphkjf2vFDR4Ju8yAVakttDdbbtzvIePZ0ftFMf0uwzbrc5UU6S2ne8l L/OEF8UeYtVg2fHaftGRBqPsmFw8f3ExX0G0WMwu5s/snPRcMNxGR8yCDspSmEwhbZK0BlGIsh12 PT1slxw5aEu/cqATNxcHPj1kQtqyc1ZHQAzz9w1rzClrbX2XJYtVumfXTNVsFcJ0FedmUOR0oWwK k8d7Q26PJS5req+NKFk15EaC6e12okppmq3WQQTSVZyHJFkBPgdlo9t5KyiBjiuBS6d7o81q+8Jg PA4r0QnJr/YhagkjFzt2/7tz6F7keV+FU9S9OMLocHqMT/Q1z9MtgvBxeNyF8whFXX4eASka5u8x nKKvzGNX69bbP3FHtnzSigqYOGoy7Isl3wPuhxmvNIXReo1hgPf4Avrh7sP6fbSGwQI6HHSWqcvZ 7AKJerVcuX122Jd/OKyibqJbyh5t7ce7AIwmkJ0+tlYxuI9DLk7Bzljc3Q3/JPBPbVuT2xIfVJ3q C9wPyxI3PFouvW9g7Jn9Frwz61pneXhooXhsn7Syo20Bmz/ykXZd+xdjaWTMCy4TjMf6pf1/AKy5 gb2nDQAA --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 03:11:06 2019 Received: (at 38200) by debbugs.gnu.org; 14 Nov 2019 08:11:06 +0000 Received: from localhost ([127.0.0.1]:60887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVADa-0005ZU-6Z for submit@debbugs.gnu.org; Thu, 14 Nov 2019 03:11:06 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVADY-0005Z0-6Y for 38200@debbugs.gnu.org; Thu, 14 Nov 2019 03:11:05 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iVADM-0001ku-QK; Thu, 14 Nov 2019 09:10:55 +0100 From: Lars Ingebrigtsen To: Katsumi Yamaoka Subject: Re: bug#38200: 26.2; sendmail.el needlessly munging headers by inserting backslashes References: <20191113215108.EA66E203EC@alderaan.gsfc.nasa.gov> <87woc3rr2e.fsf@gnus.org> <87h836oqrj.fsf@gnus.org> Date: Thu, 14 Nov 2019 09:10:52 +0100 In-Reply-To: (Katsumi Yamaoka's message of "Thu, 14 Nov 2019 17:05:34 +0900") Message-ID: <878soiop2r.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: Katsumi Yamaoka writes: > Done in master. Thanks. Ed, a patch for Emacs 26.2 is attached. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -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: 38200 Cc: Ed Sabol , 38200@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 (-) Katsumi Yamaoka writes: > Done in master. Thanks. Ed, a patch for Emacs 26.2 is attached. [...] > -(defun rfc2047-quote-special-characters-in-quoted-strings (&optional > - encodable-regexp) > - "Quote special characters with `\\'s in quoted strings. > -Quoting will not be done in a quoted string if it contains characters > -matching ENCODABLE-REGEXP or it is within parentheses." I'm not sure removing the function is the right thing to do -- it may be used by third-party code. So we should just obsolete it and then remove it in (say) Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 03:30:02 2019 Received: (at 38200) by debbugs.gnu.org; 14 Nov 2019 08:30:02 +0000 Received: from localhost ([127.0.0.1]:60897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVAVt-000622-Cs for submit@debbugs.gnu.org; Thu, 14 Nov 2019 03:30:01 -0500 Received: from bongo.elm.relay.mailchannels.net ([23.83.212.21]:8986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVAVr-00061a-P8 for 38200@debbugs.gnu.org; Thu, 14 Nov 2019 03:30:00 -0500 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 33AC45E1E28; Thu, 14 Nov 2019 08:29:58 +0000 (UTC) Received: from hampton.hostforweb.net (100-96-8-64.trex.outbound.svc.cluster.local [100.96.8.64]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 257485E1F2A; Thu, 14 Nov 2019 08:29:57 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from hampton.hostforweb.net ([TEMPUNAVAIL]. [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Thu, 14 Nov 2019 08:29:58 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Print-Arch: 489530a946ff2a75_1573720197831_3295698651 X-MC-Loop-Signature: 1573720197831:1270137234 X-MC-Ingress-Time: 1573720197830 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1iVAVg-009D5V-Qw; Thu, 14 Nov 2019 02:29:50 -0600 Date: Thu, 14 Nov 2019 17:29:45 +0900 Message-ID: From: Katsumi Yamaoka To: Lars Ingebrigtsen Subject: Re: bug#38200: 26.2; sendmail.el needlessly munging headers by inserting backslashes References: <20191113215108.EA66E203EC@alderaan.gsfc.nasa.gov> <87woc3rr2e.fsf@gnus.org> <87h836oqrj.fsf@gnus.org> <878soiop2r.fsf@gnus.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-cygwin) Cancel-Lock: sha1:IfOdcTq8MorVhHarVMxnmkCo2zs= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38200 Cc: Ed Sabol , 38200@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 Thu, 14 Nov 2019 09:10:52 +0100, Lars Ingebrigtsen wrote: >> -(defun rfc2047-quote-special-characters-in-quoted-strings (&optional >> - encodable-regexp) > I'm not sure removing the function is the right thing to do -- it may be > used by third-party code. So we should just obsolete it and then remove > it in (say) Emacs 29. Done. Thanks again. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 20:11:03 2019 Received: (at 38200) by debbugs.gnu.org; 15 Nov 2019 01:11:03 +0000 Received: from localhost ([127.0.0.1]:35442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVQ8c-0002BO-HA for submit@debbugs.gnu.org; Thu, 14 Nov 2019 20:11:02 -0500 Received: from bigbang.gsfc.nasa.gov ([128.183.16.133]:52310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVQ31-00022o-SS for 38200@debbugs.gnu.org; Thu, 14 Nov 2019 20:05:16 -0500 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 xAF15E1u050534; Thu, 14 Nov 2019 20:05:14 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 bigbang.gsfc.nasa.gov xAF15E1u050534 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bigbang.gsfc.nasa.gov; s=bigbang-2018-09; t=1573779914; bh=ViXslzXwPLBkXw/zHguIMmmRlkexABjC2Ey/JVFGmuo=; h=From:To:In-reply-to:Subject:Reply-To:References:Date:From; b=ITpt8SCqckZWxiXGMcsALy488ux6M3WLV5vuCoOU/2gLJr3tGXKf+cSRaggPpYD7r /EDo0IhSr042o+JSVHB1j8xAh6x4ruvkSSPIi6z2mUMp2DNciT/FwQVouHWoKj7eEg 757RXq3lcpPmKSEL63bxDGayZUDv09LD2POglanM= Received: by alderaan.gsfc.nasa.gov (Postfix, from userid 679) id 5A88A203EC; Thu, 14 Nov 2019 20:05:14 -0500 (EST) From: Ed Sabol To: 38200@debbugs.gnu.org In-reply-to: (message from Katsumi Yamaoka on Thu, 14 Nov 2019 17:29:45 +0900) Subject: Re: bug#38200: 26.2; sendmail.el needlessly munging headers by inserting backslashes References: <20191113215108.EA66E203EC@alderaan.gsfc.nasa.gov> <87woc3rr2e.fsf@gnus.org> <87h836oqrj.fsf@gnus.org> <878soiop2r.fsf@gnus.org> Message-Id: <20191115010514.5A88A203EC@alderaan.gsfc.nasa.gov> Date: Thu, 14 Nov 2019 20:05:14 -0500 (EST) X-Greylist: inspected by milter-greylist-4.5.12 (bigbang.gsfc.nasa.gov [128.183.16.133]); Thu, 14 Nov 2019 20:05:14 -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]); Thu, 14 Nov 2019 20:05:14 -0500 (EST) X-Scanned-By: MIMEDefang 2.84 on 128.183.16.133 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 38200 X-Mailman-Approved-At: Thu, 14 Nov 2019 20:11:01 -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: , Reply-To: Ed Sabol Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) I have applied the patch to my installation of 26.2, and I can confirm that the backslashes are no longer inserted into the To: header. Thank you, Lars and Katsumi, for so quickly investigating and resolving this! Regards, Ed From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 15 05:07:15 2019 Received: (at control) by debbugs.gnu.org; 15 Nov 2019 10:07:15 +0000 Received: from localhost ([127.0.0.1]:35681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVYVW-0002OQ-Pe for submit@debbugs.gnu.org; Fri, 15 Nov 2019 05:07:15 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVYVT-0002O4-OB for control@debbugs.gnu.org; Fri, 15 Nov 2019 05:07:13 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iVYVK-0004lO-Gs for control@debbugs.gnu.org; Fri, 15 Nov 2019 11:07:04 +0100 Date: Fri, 15 Nov 2019 11:07:01 +0100 Message-Id: <87pnhtjvwa.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #38200 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 38200 fixed close 38200 27.1 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 38200 fixed close 38200 27.1 quit From unknown Sat Jun 21 05:17:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 13 Dec 2019 12:24:03 +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