ietf-822
[Top] [All Lists]

Re: quoted strings within quoted strings

2002-03-01 10:12:25

In <200202281732(_dot_)g1SHWaF22699(_at_)astro(_dot_)cs(_dot_)utk(_dot_)edu> 
Keith Moore <moore(_at_)cs(_dot_)utk(_dot_)edu> writes:


So what is the proper way to do it?
Would it be

       sender = "\"John D. Bloggs\" <jdbloggs(_at_)example(_dot_)com>"

IMHO yes.  and the value encded by that sender parameter is

"John D. Bloggs" <jdbloggs(_at_)example(_dot_)com>

OK. So is that behaviour written down anywhere (in RFC 2822 or RFC 2045)?
Or is it already implicit in those documents. Or, to put it another way,
does the first person who invents a parameter like that (which look like
it will be me) have to say anything special to cover that case? Well, I
shall of course draw attention to it in a NOTE, but need I do more than
that?

Answer: I think I do. There is special wording of that nature in RFC 2122
(Multipart/Related) when describing the syntax of related-param. So I
think I have to write something like

sender-parameter = [CFWS] "sender" [CFWS] "=" [CFWS]
                      <a quoted-string containing an escaped mailbox> [CFWS]

where I have to define "escaped" in the proper (recursive) way, and
probably also an "unescaping" operation.

Does that sound right?

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl(_at_)clw(_dot_)cs(_dot_)man(_dot_)ac(_dot_)uk      Snail: 5 
Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5