Article View: news.software.nntp
Article #67230Re: Maximum length of 'subject' field in header ?
From: J.B. Moreno
Date: Mon, 24 Nov 2003 09:09
Date: Mon, 24 Nov 2003 09:09
39 lines
2978 bytes
2978 bytes
Dirk Nimmich <nimmich@muenster.de> wrote: > 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. Theoretically yes, but for sending it might run into practical problems, and it's a safe max for storage. > > 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. He's doing binaries, I've seen plenty of binaries with Subjects longer than that -- storing just 200 will be a problem. > But he must be aware of lines being longer than that or folded when > he reads them in from an untrusted source (= news server). True. You need to do proper error correction, if no other reason then because you're bound to run into a corrupted article at some point where the Subject is the last "good" header, and everything else gets stuffed into it. -- J.B. Moreno
Technical Details
Message-ID:
<241120030409046624%planb@newsreaders.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!nntp.giganews.com!newsfeed1.easynews.com!easynews.com!easynews!news3.optonline.net!feed3.newsreader.com!newsreader.com!news2.newsreader.com!oscar.newsreader.com!planbReferences:
<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> <bpni25$222$04$1@news.t-online.com>Show Full Headers
Complete Article Headers
Message-ID: <241120030409046624%planb@newsreaders.com> Subject: Re: Maximum length of 'subject' field in header ? Date: Mon, 24 Nov 2003 04:09:04 -0500 From: "J.B. Moreno" <planb@newsreaders.com> 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> <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!border3.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed1.easynews.com!easynews.com!easynews!news3.optonline.net!feed3.newsreader.com!newsreader.com!news2.newsreader.com!oscar.newsreader.com!planb Newsgroups: news.software.nntp MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8bit User-Agent: Thoth/1.8.0 (Carbon/OS X) X-Face: ]lUBtDImSD_`E"<*ZgyJUoCT\=CdRLFX4qCMLK[xy^L7v|uX|f8`cFDd*PaH8 N*x>d^h X-Trace: oscar.newsreader.com 7PxTvbYnRavxO/JFU2u4ALEZJJiX77LiHN6I9usR3Qa1.1 Lines: 39