🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #67182

Re: Maximum length of 'subject' field in header ?

#67182
From: Dirk Nimmich
Date: Sat, 15 Nov 2003 19:07
44 lines
3254 bytes
Starmen wrote:
> Of course I have studied a lot of information before I started
> developing !  But I never seemed to be able to find this
> particular piece of information because it is simply not there.

No limit mentioned => no limit intended.

> Often I also like to write some sample code to see whether
> specifications match with the real world (and more often than not
> they don't !).

You'll notice that this is even true for the references I gave you.
That's why you would have to deal with overlong subjects no matter
if there was a limit. For example, RFC 2047 imposes a limit on a
physical subject line (though not the subject's overall length) if
there is an encoded word in it, but this limit is often ignored.
(And especially speaking of usenet, the real world doesn't match the
specifications because they are simply not read or understood by
many developers.)

> Also, in real life a programmer cannot deal efficiently with
> theoretically unlimited data structures. Some limits are imposed
> sooner or later to avoid the 'claim <unlimited> amount of memory
> to hold potentially <unlimited> long subject lines' problem.

Correct. That's why I added the "in theory".

> I'm trying to find the common denominator which will enable my
> program to catch 99.999 % of all articles. I will gladly pass over
> the 0.001 % that chooses to use insanely long subject lines and
> let the usenet community flame them into never doing it again.

Well, in tin we had an old 2048 byte limit somewhere and got caught
recently. Even if the author is flamed down that shouldn't cause any
problems for the reader using your (or our) tool.

> I need to impose some limits because I'm storing article subject
> lines into a database which only handles fixed-length
> datastructures.

That's ok. But you should be prepared to encounter postings that
have _very_ long lines even if you cut them somewhere and ignore the
rest.
Technical Details
Message-ID: <bp5tid$jpv$02$1@news.t-online.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <3fb6228f$0$77542$c3e8da3@news.astraweb.com> <bp5hml$8tt$05$1@news.t-online.com> <3fb66078$0$85838$c3e8da3@news.astraweb.com>

Show Full Headers
Complete Article Headers
Message-ID: <bp5tid$jpv$02$1@news.t-online.com>
Subject: Re: Maximum length of 'subject' field in header ?
Date: Sat, 15 Nov 2003 20:07:57 +0100
From: Dirk Nimmich <nimmich@muenster.de>
References: <3fb6228f$0$77542$c3e8da3@news.astraweb.com> <bp5hml$8tt$05$1@news.t-online.com> <3fb66078$0$85838$c3e8da3@news.astraweb.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.nntp
Organization: T-Online
Lines: 44
Sender: Dirk Nimmich <dirk@roxel.fqdn.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1068923277 02 20287 98BzVNSvtODESUSN 031115 19:07:57
X-Complaints-To: usenet-abuse@t-online.de
X-ID: VxIhL-ZJQe81e57ysrxLImufmGL7v9Mgvab8ifqgeXbsQM7ifbJvwk