From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69198 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Reply misinterprets Commas in quoted encoded-words Date: Tue, 17 Nov 2009 11:23:07 +0900 Organization: Emacsen advocacy group Message-ID: References: <87k4xuxj4w.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1258424720 24235 80.91.229.12 (17 Nov 2009 02:25:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 02:25:20 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17603@lists.math.uh.edu Tue Nov 17 03:25:13 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1NADkn-0007zT-7d for ding-account@gmane.org; Tue, 17 Nov 2009 03:25:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1NADjQ-0005f4-2A; Mon, 16 Nov 2009 20:23:48 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1NADjO-0005eq-OG for ding@lists.math.uh.edu; Mon, 16 Nov 2009 20:23:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1NADjN-00046G-Br for ding@lists.math.uh.edu; Mon, 16 Nov 2009 20:23:46 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1NADjM-0001hs-00 for ; Tue, 17 Nov 2009 03:23:44 +0100 Original-Received: from localhost ([127.0.0.1]:50300) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1NADgf-0007NI-Ft for ding@gnus.org; Mon, 16 Nov 2009 20:20:58 -0600 X-Hashcash: 1:20:091117:ding@gnus.org::qjaJAn0ovrmZcNXH:00000lL0 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.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:EfxXLwVf+XXN2XYEJ2aQ/pUYl+I= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69198 Archived-At: >>>>> Katsumi Yamaoka wrote: >>>>>> Reiner Steib wrote: >> I got the following report in the German Gnus newsgroup [1]: When >> replying to a mail with this from header ... >>| From: "=3D?iso-8859-1?Q?Fghijkl,_Wolf-J=3DF6rg?=3D" >> ... you get the following: >>| To: ""Fghijkl >>| Cc: Wolf-J=F6rg"" >> On reply Gnus seems to double the quotes. > Confirmed. I'm going to make shift to fix this bug. Thanks. Fixed in the Gnus trunk. I've improved the rfc2047 code so as not to quote decoded words containing special characters (`,' is it in this case) if there are the quotation marks around the words already. It is effective only when the quotation marks are adjacent to words, doesn't check whether the quotation marks are not the ones used for the neighboring words. So, the following ones might cause a similar (or another) problem: From: " =3D?iso-8859-1?Q?Fghijkl,_Wolf-J=3DF6rg?=3D " From: "FOO"=3D?iso-8859-1?Q?Fghijkl,_Wolf-J=3DF6rg?=3D"BAR" (It's very hard to distinguish which word is quoted by `"'s) BTW, please keep in mind that quoted-encoded-words are all illegal. RFC2047 says: + An 'encoded-word' MUST NOT appear within a 'quoted-string'. Though Gnus decodes even such things for users' convenience. The person's name should have been encoded as it is done by Gnus as follows: (rfc2047-encode-string "\"Fghijkl, Wolf-J=F6rg\"") =3D> "=3D?iso-8859-1?Q?Fghijkl=3D2C_Wolf-J=3DF6rg?=3D" Note that `, ' is encoded into `=3D2C_'. Regards,