Some oddities (and errors?) in RFC 2425 and RFC 2426

Sam Roberts <[email protected]> Sun, 26 Jan 2003 22:20:53 -0500
Newsgroups gmane.ietf.vcard
Message-ID <20030127032053.GA3365@debian>
Or perhaps I don't understand the BNF, and somebody can set me straight.

* 1

Rfc2425 neglects to mention as a difference that multiple group names
are allowed in vCard 2.1, but not vCard 3.0 (RFC 2425).

vCard 2.1:

  groups		= groups "." word / word

  item		= [groups "."] name [params] ":" value CRLF

vCard 3.0/RFC 2426:

   contentline  = [group "."] name *(";" param ) ":" value CRLF
        ; When parsing a content line, folded lines must first
        ; be unfolded according to the unfolding procedure
        ; described above. When generating a content line, lines
        ; longer than 75 characters SHOULD be folded according to
        ; the folding procedure described in [MIME DIR].

   group        = 1*(ALPHA / DIGIT / "-")

* 2

param = param-name "=" param-value *("," param-value)
param-value  = ptext / quoted-string
ptext  = *SAFE-CHAR

So

field;toggle:value

is invalid, but

field;toggle=:value
field;toggle=,,:value

are valid? Is this really the intention?

* 3

From the example in RFC 2425:

email;type=internet:[email protected]

and

email;internet:[email protected]

The second would appear to be syntactically invalid, and not a valid
RFC 2426 EMAIL paramater.

* 4

paramater values appear not to be able to contain a DQUOTE, even
escaped. So:

name;param="..\"..":value

is invalid. This surprised me, I'd assumed that that quoting would be
possible. I'm not complaining, it makes the syntax simpler, was it
intended? I'm not missing something, am I?


Thanks,
Sam