From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63630 Path: news.gmane.org!not-for-mail From: Sascha Wilde Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Gnus does not handle quoting in quoted strings correctly. Date: Sat, 02 Sep 2006 16:03:18 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157205823 13635 80.91.229.2 (2 Sep 2006 14:03:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Sep 2006 14:03:43 +0000 (UTC) Cc: rms@gnu.org, ding@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 02 16:03:39 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GJW5y-0006Xy-DD for ged-emacs-devel@m.gmane.org; Sat, 02 Sep 2006 16:03:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJW5y-0005uZ-2H for ged-emacs-devel@m.gmane.org; Sat, 02 Sep 2006 10:03:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJW5l-0005tq-KA for emacs-devel@gnu.org; Sat, 02 Sep 2006 10:03:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJW5j-0005sI-Tn for emacs-devel@gnu.org; Sat, 02 Sep 2006 10:03:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJW5j-0005sF-Pr for emacs-devel@gnu.org; Sat, 02 Sep 2006 10:03:23 -0400 Original-Received: from [62.141.58.119] (helo=km1136.keymachine.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GJWFl-0008Uh-CC; Sat, 02 Sep 2006 10:13:45 -0400 Original-Received: from kenny.sha-bang.de (xdslg071.osnanet.de [212.95.106.71]) (authenticated bits=0) by km1136.keymachine.de (8.12.11.20060308/8.12.10) with ESMTP id k82E3DQM021399; Sat, 2 Sep 2006 16:03:13 +0200 Original-Received: from wilde by kenny.sha-bang.de with local (Kenny MUA v.0409034.42) ID 1GJW5e-0007sf-6g; Sat, 02 Sep 2006 16:03:18 +0200 Original-To: Katsumi Yamaoka In-Reply-To: (Katsumi Yamaoka's message of "Fri, 01 Sep 2006 20:09:23 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59257 gmane.emacs.gnus.general:63630 Archived-At: Katsumi Yamaoka wrote: >>>>>> In Sascha Wilde wrote: > >> if you have a mail with > >> From: "foo \[bar\]" > >> in the headers, gnus displays the from literately as > >> foo \[bar\] > >> but according to RfC822/2822 "\" is used in quoted strings as special >> quoting character and is always (no matter if necessary or not) >> semantically "invisible". So it should read: > >> foo [bar] > > Gnus does so now in both article and summary buffers. Please > note that `\"' and `\\' in a quoted string are unchanged since > `"' and `\' are not qtext (cf. RFC2822 section 3.2.5). Sorry, I'm not sure if I understand you right. Right now gnus (from CVS emacs) does not display quoted pairs in quoted strings as expected. Pleas note that according to RfC2822 3.2.5 quoted strings are defined as: quoted-string = [CFWS] DQUOTE *([FWS] qcontent) [FWS] DQUOTE [CFWS] where qcontent is qcontent = qtext / quoted-pair so quoted pairs have to be handled in quoted strings and `\"' and `\\' are legal quoted pairs (you can quote any "text", see RfC2822 3.2.1 and 3.2.2) so they must be displayed as `"' and `\'. >> The other way around, when writing display names in quoted strings, no >> quoting is done even when it would be needed. Writing a message with > >> From: "foo/bar" > >> the From: header is copied verbatim to the outgoing mail, but should >> get quoted like: > >> From: "foo//bar" > > Well, I made changes in Gnus' encoder so that it might convert > "foo/bar" into "foo\/bar". Is it correct? oops, sorry, that was a typo by me... the examples should read From: "foo\bar" and From: "foo\\bar" of cause. What I wanted to say is: Any non qtext character in quoted strings in the input should be quoted by gnus encoder. cheers sascha -- Sascha Wilde "C++ : an octopus made by nailing extra legs onto a dog"