Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: rms@gnu.org, ding@gnus.org, emacs-devel@gnu.org
Subject: Re: Gnus does not handle quoting in quoted strings correctly.
Date: Mon, 04 Sep 2006 10:41:17 +0900	[thread overview]
Message-ID: <b4mhczol876.fsf@jpl.org> (raw)
In-Reply-To: <m2r6yshpbu.fsf@kenny.sha-bang.de>

>>>>> In <m2r6yshpbu.fsf@kenny.sha-bang.de> Sascha Wilde wrote:

> Katsumi Yamaoka <yamaoka@jpl.org> wrote:

>> I agree that `\\' in a quoted string is decoded into `\'.

I've made a change further in both the v5-10 branch and the
trunk so that the decoder might do so.  Although that behavior
is different from FLIM which I always relied on as a model, it
doesn't seem to cause any harm as far as it is done in Gnus
because `\' in a quoted string is now encoded into `\\' when
sending a message.

Miles, I'm sorry to bother you again but please merge it to the
Emacs CVS.  Thanks in advance.

>> 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 agree.  And it is supposed possible to achieve.  However, I
think we should not start such a development in the Emacs CVS
*now* since appearing of `\'s doesn't look so serious to me and
it seems to require that it is tested thoroughly.

> 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...

I don't yet know how it is easy or difficult.  So, I vote for it
as well.

      reply	other threads:[~2006-09-04  1:41 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
2006-09-04  1:41         ` Katsumi Yamaoka [this message]

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=b4mhczol876.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --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).