Re: CPIM and URIs

Graham Klyne <[email protected]>
Newsgroups gmane.ietf.impp
Message-ID <[email protected]>
At 08:43 AM 5/20/02 -0400, John D. Ramsdell wrote:
>Since CPIM defines URIs, I suggest that it include a reference to the
>relevant RFC on the subject.
>
>   Berners-Lee, T., R. Fielding, and L. Masinter, "Uniform Resource
>   Identifiers (URI): Generic Syntax", RFC 2396, August 1998.
>
>In addition, I am unclear about the issue of quoting.  As I understand
>RFC 2822 and RFC 2396,
>
>     "John D. Ramsdell"@mitre.org
>
>is a valid Email address, but
>
>     im:"John D. Ramsdell"@mitre.org
>
>is not a valid URI.  One must write
>
>     im:%22John%20D.%20Ramsdell%[email protected]
>
>instead.  Are IMPP IM and PRES URI Schemes valid URIs, or are they
>composed of a scheme part, a colon character, and finally a string
>that parses as an email address?  Whatever the answer, the CPIM text
>should be explicit on this topic.

My understanding is that they are valid URIs.  So %-encoding of the quoted 
string would be appropriate.  I'm not sure how much of this detail needs to 
be in the CPIM document, but I agree it should be clear when references to 
RFC 2396 are taken into account.

There's something not clear to me, regarding RFC822/2822:  if a mailbox is 
quoted because it contains spaces, etc., are the quotes part of the mailbox 
name?

..

Ah, here's the answer from RFC 2822, section 3.2.5:

[[
    Semantically, neither the optional CFWS outside of the quote
    characters nor the quote characters themselves are part of the
    quoted-string; the quoted-string is what is contained between the two
    quote characters. [...]
]]

I would then say that the correct form of your example URI should be:

     im:John%20D.%[email protected]

#g

-------------------
Graham Klyne
<[email protected]>



  [reminder: [email protected] for non-technical discussions, please]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.