🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #48607

Maximum lengths/values of various fields?

#48607
From: Rick Langston
Date: Mon, 02 Oct 2000 00:00
33 lines
2006 bytes
In coding up my own NNTP client application, I came up with a couple of questions
that didn't seem to be answered by RFC0977 or by the Common NNTP Extensions draft.
I'm sure they've probably been discussed over time in this newsgroup....

* What is the minimum and maximum value of an article number? 

I would think that most applications code an article number as an unsigned int or
unsigned long. It does not appear to be spec'd anywhere as to the max. Although
it seems unlikely that any newsgroup would exceed 4.2B or even 2.1B messages 
any time soon, though, at least without a resetting of message numbers back to 
1. Or is it possible to have a message number 0?

* What is the maximum length of a subject string? 

RFC0977 makes mention of a 512-byte length of commands, but I don't know if 
this applies to subjects. 

* What is the maximum length of a message-id? 

Again no direct mention of this in the docs I could find. The difference here is
that the user doesn't control the generation of this text, so it wouldn't seem
to be arbitrarily long. 

* What is the maximum length of a record in a message body? 

Same issue as with subject.

TIA for any information/discussion on this subject.
-- 
Rick Langston <langston@pagesz.net>
Home page at http://www.pagesz.net/~langston

Technical Details
Message-ID: <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

Show Full Headers
Complete Article Headers
Message-ID: <OV1C5.532$dB6.48596@news-reader.ntrnet.net>
Subject: Maximum lengths/values of various fields?
Date: Mon, 02 Oct 2000 00:00:00 +0000
From: langston@pagesz.net (Rick Langston)
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: 676660818
X-Trace: news-reader.ntrnet.net 970500846 208.194.157.3 (Mon, 02 Oct 2000 11:34:06 EDT)
Organization: PAGESZ.net
NNTP-Posting-Date: Mon, 02 Oct 2000 11:34:06 EDT
Newsgroups: news.software.nntp
X-Complaints-To: abuse@ntrnet.net