🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #67225

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

#67225
From: Dirk Nimmich
Date: Sat, 22 Nov 2003 11:41
23 lines
2440 bytes
Solo wrote:
> "J.B. Moreno" <planb@newsreaders.com> wrote
>> Starmen <someone@microsoft.com> wrote:
>>
>> > I'll stick to 200 characters for now and see whether this poses any real
>> > problems.
>>
>> Assuming your program gets used, that *will* be a problem -- Dirk gave
>> a lot of references for his answer, I'm not going to do that (partially
>> because I don't think you're really interested in that): 998+CRLF.

That's only the length of a physical line. The subject line as a
whole can be much longer.

> Seems if the guy is using a database it wouldn't be that
> hard to create 2 fields, one of fixed length, and another
> to accept the overflow in the rare case that a subject is longer.

There is nothing wrong with storing only 200 bytes/octets (not
characters, characters can span over several bytes) in his database.
But he must be aware of lines being longer than that or folded when
he reads them in from an untrusted source (= news server).
Technical Details
Message-ID: <bpni25$222$04$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!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.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> <bp5tid$jpv$02$1@news.t-online.com> <3fb67d8e$0$85808$c3e8da3@news.astraweb.com> <161120032215152306%planb@newsreaders.com> <3fbe97d4_7@127.0.0.1>

Show Full Headers
Complete Article Headers
Message-ID: <bpni25$222$04$1@news.t-online.com>
Subject: Re: Maximum length of 'subject' field in header ?
Date: Sat, 22 Nov 2003 12:41: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> <bp5tid$jpv$02$1@news.t-online.com> <3fb67d8e$0$85808$c3e8da3@news.astraweb.com> <161120032215152306%planb@newsreaders.com> <3fbe97d4_7@127.0.0.1>
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!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.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: 23
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 1069501317 04 2114 NZg9VrcOe7scykI 031122 11:41:57
X-Complaints-To: usenet-abuse@t-online.de
X-ID: TJQ3nwZfreBtY12woQ1yC4e+lTn6IQsoBqZB1HTeYMefkVRtrYp282