Article View: news.software.nntp
Article #67180Re: Maximum length of 'subject' field in header ?
From: Starmen
Date: Sat, 15 Nov 2003 17:21
Date: Sat, 15 Nov 2003 17:21
82 lines
4486 bytes
4486 bytes
> You are developing a program without knowing any specification about > the topic? (Ok, rhetorical question. That seems to be normal these > days.) Thanks for the pointers. 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. 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 !). 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. 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. I need to impose some limits because I'm storing article subject lines into a database which only handles fixed-length datastructures. So far it's working very well, the program doesn't need to hold all articles from a newsgroup in memory (like newsbin pro does for example, making it use 300+ MB of main memory for the largest binary newsgroups :( ) but yanks them real-time from the database as soon as the user presses the 'pageup/pagedown/etc.' key. This also means there is no delay when switching from one newsgroup to another :). Regards, Starmen "Dirk Nimmich" <nimmich@muenster.de> wrote in message news:bp5hml$8tt$05$1@news.t-online.com... > Starmen wrote: > > I'm developing my own binary newsreader and I'm wondering what > > the maximum length of the 'subject' field in an article header > > is. > > In short: There is none. > > > I've been trying to find information on the net but I haven't been > > able to find it. > > You are developing a program without knowing any specification about > the topic? (Ok, rhetorical question. That seems to be normal these > days.) > > Basic format: > RFC 822 <http://www.ietf.org/rfc/rfc822.txt> > RFC 1036 <http://www.ietf.org/rfc/rfc1036.txt> > RFC 2822 <http://www.ietf.org/rfc/rfc2822.txt> > USEFOR draft > <http://www.ietf.org/internet-drafts/draft-ietf-usefor-article-11.txt> > > Encoding and declaration of content: > RFC 2045 <http://www.ietf.org/rfc/rfc2045.txt> > RFC 2046 <http://www.ietf.org/rfc/rfc2046.txt> > RFC 2047 <http://www.ietf.org/rfc/rfc2047.txt> > RFC 2183 <http://www.ietf.org/rfc/rfc2183.txt> > RFC 2231 <http://www.ietf.org/rfc/rfc2231.txt> > Content-Type database > <http://www.iana.org/assignments/media-types/index.html> > > Transport: > RFC 977 <http://www.ietf.org/rfc/rfc977.txt> > RFC 2980 <http://www.ietf.org/rfc/rfc2980.txt> > NNTP draft > <http://www.ietf.org/internet-drafts/draft-ietf-nntpext-base-20.txt> > > See also <http://www.tin.org/docs.html> for further references. > > > Currently I have the limit set at 160 characters, but I'm not sure > > that this is enough. > > No. If folded and (if needed) encoded properly, there is no limit at > all. (At least in theory.) >
Technical Details
Message-ID:
<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!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.news2me.com!elnk-nf2-pas!newsfeed.earthlink.net!news.astraweb.com!news-big.astraweb.com!not-for-mailReferences:
<3fb6228f$0$77542$c3e8da3@news.astraweb.com> <bp5hml$8tt$05$1@news.t-online.com>Show Full Headers
Complete Article Headers
Message-ID: <3fb66078$0$85838$c3e8da3@news.astraweb.com> Subject: Re: Maximum length of 'subject' field in header ? Date: Sat, 15 Nov 2003 18:21:37 +0100 From: "Starmen" <someone@microsoft.com> References: <3fb6228f$0$77542$c3e8da3@news.astraweb.com> <bp5hml$8tt$05$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!elnk-nf2-pas!newsfeed.earthlink.net!news.astraweb.com!news-big.astraweb.com!not-for-mail Newsgroups: news.software.nntp X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Lines: 82 Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: 5de9ba59.news.astraweb.com X-Trace: DXC=>[; ?Y62TYSIWe7Bc]TQV_NL?0kYOcDh@J_5YRcigFWeK@FYBB3\b:@Ed27B; Rn=bn@6l09bFVg<]HF<K1RF>@>HH