ietf-822
[Top] [All Lists]

Re: Is Content-type an RFC822 "structured header"?

1999-05-24 04:12:18
In 
<3(_dot_)0(_dot_)32(_dot_)19990523173115(_dot_)01781800(_at_)pop(_dot_)dial(_dot_)pipex(_dot_)com>
 Graham Klyne <GK(_at_)dial(_dot_)pipex(_dot_)com> writes:


At 10:43 21/05/99 GMT, Charles Lindsey wrote:

  Content-type: image/tiff; boundary=
    "longboundarystringwrappedtonextlinetolimitlinelength"

It is completely legal.

Fine, but that still does not establish _exactly_ where folding may occur.

I beg to differ, in this case, because RFC822 (cited directly by the MIME
document) describes the lexical analysis of structured header fields:

       These symbols are:

                    -  individual special characters
                    -  quoted-strings
                    -  domain-literals
                    -  comments
                    -  atoms

Thus, folding is permitted between any pair of symbols indicated above.

Ah yes! But is a <token> one of those symbols that count as a "lexical
token"? The syntax for <token> first appeared in RFC2045 (or its
predecessor) AIUI, so it was not mentioned in RFC 822, and RFC 2045 is
silent on the issue.

The particular split we are discussing is legal because the object in
question is a <quoted-string>, but leave the DQUOTEs out of it, and is the
split then still legal?

Common sense says it should be, and that <token> should indeed be a
"lexical token", and Ned seems to agree. But it does not actually say so
anywhere.

BTW, I see that DRUMs uses the word "token" informally to discuss lexical
entities. Perhaps this is unwise in view of its use as a syntactic object
in RFC 2045.

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Email:     chl(_at_)clw(_dot_)cs(_dot_)man(_dot_)ac(_dot_)uk  Web:   
http://www.cs.man.ac.uk/~chl
Voice/Fax: +44 161 437 4506      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