From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63638 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: Sun, 03 Sep 2006 18:44:53 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1157301926 18848 80.91.229.2 (3 Sep 2006 16:45:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Sep 2006 16:45:26 +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 Sun Sep 03 18:45:25 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 1GJv5v-0008Ru-LK for ged-emacs-devel@m.gmane.org; Sun, 03 Sep 2006 18:45:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJv5v-0006rH-94 for ged-emacs-devel@m.gmane.org; Sun, 03 Sep 2006 12:45:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJv5k-0006qt-NN for emacs-devel@gnu.org; Sun, 03 Sep 2006 12:45:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJv5h-0006qb-Os for emacs-devel@gnu.org; Sun, 03 Sep 2006 12:45:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJv5h-0006qY-GU for emacs-devel@gnu.org; Sun, 03 Sep 2006 12:45:01 -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 1GJvFz-0003ce-Mh; Sun, 03 Sep 2006 12:55:40 -0400 Original-Received: from kenny.sha-bang.de (xdslci204.osnanet.de [89.166.136.204]) (authenticated bits=0) by km1136.keymachine.de (8.12.11.20060308/8.12.10) with ESMTP id k83GimDX029254; Sun, 3 Sep 2006 18:44:49 +0200 Original-Received: from wilde by kenny.sha-bang.de with local (Kenny MUA v.0409034.42) ID 1GJv5Z-0007NV-7u; Sun, 03 Sep 2006 18:44:53 +0200 Original-To: Katsumi Yamaoka In-Reply-To: (Katsumi Yamaoka's message of "Sun\, 03 Sep 2006 09\:19\:09 +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:59288 gmane.emacs.gnus.general:63638 Archived-At: Katsumi Yamaoka wrote: >>>>>> In >>>>>> Sascha Wilde wrote: [...] >> 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 `\'. > > I agree that `\\' in a quoted string is decoded into `\'. > However, I don't think it is useful that > > "foo \"bar\"" is decoded into "foo "bar"" or foo "bar" > > because it may appear in the From header and may be used in the > To header when replying. I do agree that decoding `\"' would be a problem in such situations, as it wouldn't be possible determine unambiguously how to re-encode the string. I'd think the ideal solution would be to only decode `\"' for display (in summary and article buffers) but to keep it quoted when used to generate a new message (like a reply for instance). I don't know if this can be done easily or if the current code base doesn't allow to make this difference -- if it's to hard to do I would vote for leaving `\"' quoted... cheers sascha --=20 Sascha Wilde : xedit? Das sieht zwar wie vi aus als k=F6nne es nix, aber im : Gegensatz zu vi kann es wirklich nix und nix ist noch gesch= =F6nt! : (Michael Core in dafc)