[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svndumpfilter - rfc.

From: Michael Price <mprice_at_atl.lmco.com>
Date: 2003-04-10 17:48:44 CEST

Ben Collins-Sussman wrote:
> My understanding of RFC 822 parser was this:
>
> * read a bunch of headers that start with colon (":")
> * notice if one of the headers is "Content-length:"

Content-length: isn't actually listed in the spec. You are free to use
it as an optional-field though.

> * look for a blank line.
> * read 'Content-length' bytes of body

In the standard, all text after the "message" is the "body" and no
length is specified. Nothing prevents people from using Content-length:
to specify the body size though.

> * return the headers and body to the user.
> * repeat

That is basically it. One paragraph worth noting though is this one:

   "The only required header fields are the origination date field and
    the originator address field(s). All other header fields are
    syntactically optional. More information is contained in the table
    following this definition."

This is also true for 822 so you can't "really" claim [2]822 conformance
without an origination date and originator address. I haven't looked at
how subversion uses [2]822 so it may already do this.

Just letting people know.

-- 
Michael H. Price II       Member of the Engineering Staff
Lockheed Martin -- Advanced Technology Laboratories
3 Executive Campus, 6th Floor, Cherry Hill, NJ  08002
856-792-9746, fax 856-792-9925, email mprice@atl.lmco.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 10 18:09:59 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.