Gnus development mailing list
 help / color / mirror / Atom feed
From: Sascha Wilde <wilde@sha-bang.de>
Cc: rms@gnu.org, ding@gnus.org, emacs-devel@gnu.org
Subject: Re: Gnus does not handle quoting in quoted strings correctly.
Date: Sun, 03 Sep 2006 18:44:53 +0200	[thread overview]
Message-ID: <m2r6yshpbu.fsf@kenny.sha-bang.de> (raw)
In-Reply-To: <b4mzmdh6buq.fsf@jpl.org> (Katsumi Yamaoka's message of "Sun\, 03 Sep 2006 09\:19\:09 +0900")

Katsumi Yamaoka <yamaoka@jpl.org> wrote:
>>>>>> In <m2mz9is6vt.fsf@kenny.sha-bang.de>
>>>>>>	Sascha Wilde <wilde@sha-bang.de> 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
-- 
Sascha Wilde : xedit? Das sieht zwar wie vi aus als könne es nix, aber im
             : Gegensatz zu vi kann es wirklich nix und nix ist noch geschönt!
             : (Michael Core in dafc)

  reply	other threads:[~2006-09-03 16:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-30 20:38 Sascha Wilde
2006-09-01 11:09 ` Katsumi Yamaoka
2006-09-01 21:50   ` Richard Stallman
2006-09-01 22:54     ` Katsumi Yamaoka
2006-09-02  0:53       ` Miles Bader
2006-09-02 18:09         ` Richard Stallman
2006-09-02 14:03   ` Sascha Wilde
2006-09-03  0:19     ` Katsumi Yamaoka
2006-09-03 16:44       ` Sascha Wilde [this message]
2006-09-04  1:41         ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2r6yshpbu.fsf@kenny.sha-bang.de \
    --to=wilde@sha-bang.de \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).