emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus does not handle quoting in quoted strings correctly.


From: Katsumi Yamaoka
Subject: Re: Gnus does not handle quoting in quoted strings correctly.
Date: Sun, 03 Sep 2006 09:19:09 +0900
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

>>>>> In <address@hidden>
>>>>>   Sascha Wilde <address@hidden> wrote:

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

I'm not quite sure of it but FLIM's decoder (which SEMI MUAs
such as Wanderlust uses) does so, and I followed it.

> 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 `\'.

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.

WDYT?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]