Article View: news.software.nntp
Article #48609Re: Maximum lengths/values of various fields?
From: Andrew Gierth
Date: Mon, 02 Oct 2000 00:00
Date: Mon, 02 Oct 2000 00:00
42 lines
2401 bytes
2401 bytes
>>>>> "Rick" == Rick Langston <langston@pagesz.net> writes: Rick> In coding up my own NNTP client application, I came up with a Rick> couple of questions that didn't seem to be answered by RFC0977 Rick> or by the Common NNTP Extensions draft. I'm sure they've Rick> probably been discussed over time in this newsgroup.... Rick> * What is the minimum and maximum value of an article number? minimum is 1 maximum is 4294967295 (i.e. 2^32-1) Rick> * What is the maximum length of a subject string? theoretically unlimited (though in practice many servers will reject overlong header lines, e.g. >1023 chars before or after unfolding). Longest I've seen in the wild was 20k or so (someone had pasted an entire Make-Money-Fast article into the subject line of their post). My own server code rejects articles whose overview data would exceed 64k in total. Rick> RFC0977 makes mention of a 512-byte length of commands, but I Rick> don't know if this applies to subjects. That limit applies to commands and responses only, not to article headers, bodies or overviews. Rick> * What is the maximum length of a message-id? Message-ids have to fit on the NNTP command line, so that would limit them to about 500 bytes, but some software (and the USEFOR draft, I hope) limits them to 250 bytes including the <>. Rick> * What is the maximum length of a record in a message body? theoretically unlimited (other than by the maximum body size, which is a site policy issue) -- Andrew.
Technical Details
Message-ID:
<8766nb2fs7.fsf@erlenstar.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<OV1C5.532$dB6.48596@news-reader.ntrnet.net>Show Full Headers
Complete Article Headers
Message-ID: <8766nb2fs7.fsf@erlenstar.demon.co.uk> Subject: Re: Maximum lengths/values of various fields? Date: Mon, 02 Oct 2000 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <OV1C5.532$dB6.48596@news-reader.ntrnet.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 676754590 X-Mayan-Date: Long count = 12.19.7.10.15; tzolkin = 11 Men; haab = 18 Chen X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp X-Post-Filter: postfilter v0.6 alpha