Thread View: news.software.readers
17 messages
17 total messages
Started by Snedegar
Fri, 12 Jun 1998 00:00
Reference line length question
Author: Snedegar
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
18 lines
1471 bytes
1471 bytes
In a conversation with the vender of the NNTP component that I'm using in building a newsreader I discovered that header lines are limited to 255 characters and there is no way around it. With this limitation it is only possible to pass on the first ref + last three + id of original article. RFC 1036 says to include a "reasonable number of references." GNKSA says to include as many as possible but at least the last three. My question is: If my beautiful newsreader chops down the reference line this way, would it be acceptable or would it throw it squarely into that ugly category of "broken" ? -- Cricket Software snedegar@prodigy.net http://pages.prodigy.net/snedegar/
Re: Reference line length question
Author: Russ Allbery
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
20 lines
1311 bytes
1311 bytes
Curt Welch <curt@kcwc.com> writes: > "Luu Tran" <luutran@geocities_.com> wrote: >> References: <id1> <id2> >> [tab]<id3> <id4> >> I've seen this done by some readers. Is it legal? > It's legal, but not commonly done because of the believe that some > newsreadres don't correctly deal with wrapped References: line. Old versions of INN didn't deal with it correctly; that problem has long since been fixed. Some PC/Mac newsreaders can't handle it and should be fixed. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: Reference line length question
Author: Russ Allbery
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
21 lines
1510 bytes
1510 bytes
Curt Welch <curt@kcwc.com> writes: > Snedegar <snedegar@prodigy.net> wrote: >> In a conversation with the vender of the NNTP component that I'm using >> in building a newsreader I discovered that header lines are limited to >> 255 characters and there is no way around it. > Are you sure this is true? Have you tested and verified that this is > really so? If it is, it's a really broken NNTP component and it either > needs to be fixed or you need to find a "real" NNTP component. Header length is limited to 1024 on Usenet by de facto operational limits. (In other words, it's the limit set by the default configuration of INN, very few sites change that, and so you allow larger headers for locally originated posts at your peril because they'll probably not propagate.) -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: Reference line length question
Author: Jeroen Scheerder
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
48 lines
2685 bytes
2685 bytes
Snedegar (snedegar@prodigy.net): > In a conversation with the vender of the NNTP component that I'm using in > building a newsreader I discovered that header lines are limited to 255 > characters and there is no way around it. With this limitation it is only > possible to pass on the first ref + last three + id of original article. If you're in luck, and these five aren't too long already. > RFC 1036 says to include a "reasonable number of references." > GNKSA says to include as many as possible but at least the last three. > > My question is: If my beautiful newsreader chops down the reference line > this way, would it be acceptable or would it throw it squarely into that > ugly category of "broken" ? Well... your code and your design may be beautiful, but yes, if it's hampered by such a limit, that's bad. Note that the References header is not the only victim of such a (bad) restriction; not all of them equally severely, but still, that's bad enough. An example: subject-based threading may very well depend on Subject lines remaining intact. Most articles' subject will be below 255, so it won't affect most articles. It's a shame to fall prey to such things, especially if you're doing everything you can to get your bit of it right; and I'd be inclined to think that software that imposes restrictions that violate the Usenet Message Format should be shunned, really. It shouldn't be called "NNTP component" if it damages Usenet messages. If you're really dependent on it, do submit a bug report, and strongly urge that it gets fixed. If that looks unfeasable, look for a replacement. There's quite a bit of reusable code out there; and the best stuff combines to nice properties, often -- it's free as well as unrivalled in quality and performance. No one should ever feel condemned to using broken, sub-standard commercial software. Not in this world. -- J$ -- dash-dash-space this is my .sig it's not so .big
Re: Reference line length question
Author: Todd Fiske
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
33 lines
1862 bytes
1862 bytes
A line length limit of 255 suggests you may be using Delphi or Pascal. If this is the case, you might be interested in looking at a package that I just found last night called the Internet Connection Suite. It's by a Belgian guy named Francios Piette, at this site: http://www.rtfm.be/fpiette/indexuk.htm Here's a little blurb from that page: ICS is the Internet Component Suite. It is composed of the various internet components and applications described below. The archive contains the source code, compatible with Delphi 1, 2, 3 and C++Builder. Freeware, royalty free, free support. Last update: May 2, 1998. I haven't used these at all, but they are well talked about on this site (by other users, not just by the author). The files in the ZIP I got were actually updated *yesterday* (1998-06-11)! There are telnet, nntp, ftp, http, smtp, pop3, and a whole flock of other components, all as source code, with example apps. I understand you may not be too enthusiastic about switching to a whole new library of components this far along in your project, especially if you paid good money for what you use now, but thought this was worth a mention anyway. Best of luck! -tf
Re: Reference line length question
Author: Curt Welch
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
34 lines
2503 bytes
2503 bytes
Snedegar <snedegar@prodigy.net> wrote: > In a conversation with the vender of the NNTP component that I'm using in > building a newsreader I discovered that header lines are limited to 255 > characters and there is no way around it. Are you sure this is true? Have you tested and verified that this is really so? If it is, it's a really broken NNTP component and it either needs to be fixed or you need to find a "real" NNTP component. NNTP has a limit of 255 (or 256?) characters per line for NNTP commands, but NOT for nntp data - which is where References: lines are found. The person you were talking to might have confused the 255 character command line limit with other limits for the data. > My question is: If my beautiful newsreader chops down the reference line > this way, would it be acceptable or would it throw it squarely into that > ugly category of "broken" ? If your newsreader limits References: lines to 255 characters, then yes I'd say it was broken. But if you have to live with this, make sure you do it correctly. I.e., keep as many message ID's as possible - only remove the id's that are required to get the line under the 255 limit. And be very careful about counting characters. Make sure you know exactly what the limit is (and whether it includes the CR LF at the end of the line etc.) Make sure you code isn't off by one on it's calculation. This could result in postings failing - or references being truncated - both of which are "more" broken than being forced to limit the line to 255 characters. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Reference line length question
Author: John Moreno
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
43 lines
2710 bytes
2710 bytes
Snedegar <snedegar@prodigy.net> wrote: > In a conversation with the vender of the NNTP component that I'm using in > building a newsreader I discovered that header lines are limited to 255 > characters and there is no way around it. With this limitation it is only > possible to pass on the first ref + last three + id of original article. If by NNTP component you mean you are using a library to handle the connection to the NNTP server - I'd recommend that you get a different one or do it yourself. > RFC 1036 says to include a "reasonable number of references." > GNKSA says to include as many as possible but at least the last three. > > My question is: If my beautiful newsreader chops down the reference line > this way, would it be acceptable or would it throw it squarely into that > ugly category of "broken" ? Well, if it was being tested by somebody who didn't know about this, then since the MUST is that it keep at least the last 3 references it might squeak by on luck - if all of the id's are under 80 chars (which would be quite typical) then it would pass, one the other hand if somebody just happened to test it where all of the id's were 160 chars then it wouldn't pass. 255-"References: "=242, with id's typically between 40-70, that gives you between 3 and 6 id's, 6 is almost but not quite enough to handle most situation, 3 is definitely NOT sufficient. And it's possible that you'd end up with only one id in some circumstances - again no where near enough for proper threading given propagation delays. Again - I'd say use a different library -- this one is obviously broken. This is a id as someone using the commercial usenet provider AirNews might get, as you can see it's about 80 chars long - given spaces and everything 3 of these /just/ fit. <A45028D83CAA06A6.D89DCF936AD4845B.872E1030BA91A8E7@library-proxy.airnews.net> -- John Moreno
Re: Reference line length question
Author: Curt Welch
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
23 lines
1551 bytes
1551 bytes
"Luu Tran" <luutran@geocities_.com> wrote: > Is that 255 chars PER LINE or TOTAL. I.e., can you wrap References lines I'm sure he's talking PER LINE. > > References: <id1> <id2> > [tab]<id3> <id4> > > I've seen this done by some readers. Is it legal? It's legal, but not commonly done because of the believe that some newsreadres don't correctly deal with wrapped References: line. I think it would be better for him to limit the line to 255 chars instead of wrapping the References: header. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Reference line length question
Author: Luu Tran
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
58 lines
2714 bytes
2714 bytes
On Fri, 12 Jun 1998, John Moreno <phenix@interpath.com> wrote in <1dai88p.bn4au187j9ztN@roxboro0-015.dyn.interpath.net>: >Snedegar <snedegar@prodigy.net> wrote: > >> In a conversation with the vender of the NNTP component that I'm using in >> building a newsreader I discovered that header lines are limited to 255 >> characters and there is no way around it. With this limitation it is only >> possible to pass on the first ref + last three + id of original article. > >If by NNTP component you mean you are using a library to handle the >connection to the NNTP server - I'd recommend that you get a different >one or do it yourself. > >> RFC 1036 says to include a "reasonable number of references." >> GNKSA says to include as many as possible but at least the last three. >> >> My question is: If my beautiful newsreader chops down the reference line >> this way, would it be acceptable or would it throw it squarely into that >> ugly category of "broken" ? > >Well, if it was being tested by somebody who didn't know about this, >then since the MUST is that it keep at least the last 3 references it >might squeak by on luck - if all of the id's are under 80 chars (which >would be quite typical) then it would pass, one the other hand if >somebody just happened to test it where all of the id's were 160 chars >then it wouldn't pass. > >255-"References: "=242, with id's typically between 40-70, that gives >you between 3 and 6 id's, 6 is almost but not quite enough to handle >most situation, 3 is definitely NOT sufficient. And it's possible that >you'd end up with only one id in some circumstances - again no where >near enough for proper threading given propagation delays. > [snip] Is that 255 chars PER LINE or TOTAL. I.e., can you wrap References lines References: <id1> <id2> [tab]<id3> <id4> I've seen this done by some readers. Is it legal? Anyway, if you're restricted to 255 chars total, then it's moot. -- luu Please remove the underscore _ in my address when replying by email
Re: Reference line length question
Author: Russ Allbery
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
19 lines
1051 bytes
1051 bytes
Luu Tran <luutran@geocities_.com> writes: > So is 1024 the definitive limit? Pretty much. > Would I be pretty safe limitting it to <1024. Yup. > Or should it be even lower, like 255? I honestly don't think that's necessary. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: Reference line length question
Author: Luu Tran
Date: Sat, 13 Jun 1998 00:00
Date: Sat, 13 Jun 1998 00:00
20 lines
1356 bytes
1356 bytes
On Fri, 12 Jun 1998, Russ Allbery <rra@stanford.edu> wrote in <m3n2bi2i1v.fsf@windlord.Stanford.EDU>: >Header length is limited to 1024 on Usenet by de facto operational limits. >(In other words, it's the limit set by the default configuration of INN, >very few sites change that, and so you allow larger headers for locally >originated posts at your peril because they'll probably not propagate.) > >-- >Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/> So is 1024 the definitive limit? Would I be pretty safe limitting it to <1024. Or should it be even lower, like 255? -- luu Please remove the underscore _ in my address when replying by email
Re: Reference line length question
Author: Russ Allbery
Date: Sat, 13 Jun 1998 00:00
Date: Sat, 13 Jun 1998 00:00
17 lines
1294 bytes
1294 bytes
Jeroen Scheerder <js@xs4all.nl> writes: > The actual "minimal acceptance" limit, as used in INN, written down in > son-of-1036, and to be considered de facto standard, is actually "1000 > octets, including end of line representation". I do not believe you are correct about INN. windlord:.../inn-1.7.2.insync-1.1d/config> grep HEADERSIZE config.dist #### =()<MAXHEADERSIZE @<MAXHEADERSIZE>@>()= MAXHEADERSIZE 1024 -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: Reference line length question
Author: John Moreno
Date: Sat, 13 Jun 1998 00:00
Date: Sat, 13 Jun 1998 00:00
23 lines
1664 bytes
1664 bytes
Luu Tran <luutran@geocities_.com> wrote: > On Fri, 12 Jun 1998, Russ Allbery <rra@stanford.edu> wrote in > > >Header length is limited to 1024 on Usenet by de facto operational limits. > >(In other words, it's the limit set by the default configuration of INN, > >very few sites change that, and so you allow larger headers for locally > >originated posts at your peril because they'll probably not propagate.) > > > > So is 1024 the definitive limit? Would I be pretty safe limitting it to > <1024. Or should it be even lower, like 255? It would be better to set it to <=997. Since this started with a reference to the GNKSA, I'd suggest that you look at it. <http://www.xs4all.nl/~js/gnksa/gnksa.txt> -- John Moreno
Re: Reference line length question
Author: Jeroen Scheerder
Date: Sun, 14 Jun 1998 00:00
Date: Sun, 14 Jun 1998 00:00
24 lines
1728 bytes
1728 bytes
Luu Tran <luutran@geocities_.com>: > So is 1024 the definitive limit? Would I be pretty safe limitting it to > <1024. Or should it be even lower, like 255? The actual "minimal acceptance" limit, as used in INN, written down in son-of-1036, and to be considered de facto standard, is actually "1000 octets, including end of line representation". An octet is an 8-bit sized byte, and EOL in telnet streams is CFLF, which makes for two. The GNKSA, for that reason, speaks of a safe 998 byte limit. However, there seems to be a one-off bug in some server software (I haven't been able to replicate it), making 997 bytes perhaps even safer, in practice. -- J$ -- dash dash space this is my .sig it's not so .big
Re: Reference line length question
Author: Jeroen Scheerder
Date: Sun, 14 Jun 1998 00:00
Date: Sun, 14 Jun 1998 00:00
29 lines
1874 bytes
1874 bytes
Russ Allbery <rra@stanford.edu>: [folded references] > Old versions of INN didn't deal with it correctly; that problem has long > since been fixed. Some PC/Mac newsreaders can't handle it and should be > fixed. Actually, INN's core itself had no problem with it, but the `overview' stuff choked on it. This -- and older, similarly broken -- news transport/server software still exists, alas, admittedly on poorly maintained sites. Of course it should be fixed in readers. It should be fixed everywhere; but that still will not do anything for all-too-short line length restrictions. Subjects can be long; and it is quite conceivable that there might one fine, sunny day, appear a Message-ID that by itself already exceeds 255 chars. -- J$ -- dash dash space this is my .sig it's not so .big
Re: Reference line length question
Author: Earl Snedegar
Date: Sun, 14 Jun 1998 00:00
Date: Sun, 14 Jun 1998 00:00
25 lines
1482 bytes
1482 bytes
Snedegar wrote: > My question is: If my beautiful newsreader chops down the > reference line to 255 characters, would it be acceptable > or would it throw it squarely into that ugly category > of "broken" ? Thanks for the responses. I'm convinced. I will either find a better component or build my own and then gut this thing and start over. To answer some questions - it's each line that limited to 255 characters and that's only when sending them, not when receiving them. As to development environment - I'm using Borland (EnPrise?) C++ Builder but the components are written mostly in Delphi. -- Cricket Software snedegar@prodigy.net http://pages.prodigy.net/snedegar/
Re: Reference line length question
Author: Curt Welch
Date: Sun, 14 Jun 1998 00:00
Date: Sun, 14 Jun 1998 00:00
39 lines
2764 bytes
2764 bytes
Russ Allbery <rra@stanford.edu> wrote: > Jeroen Scheerder <js@xs4all.nl> writes: > > The actual "minimal acceptance" limit, as used in INN, written down in > > son-of-1036, and to be considered de facto standard, is actually "1000 > > octets, including end of line representation". > > I do not believe you are correct about INN. > > windlord:.../inn-1.7.2.insync-1.1d/config> grep HEADERSIZE config.dist > #### =()<MAXHEADERSIZE @<MAXHEADERSIZE>@>()= > MAXHEADERSIZE 1024 You are confusing two different things here. The NNTP line length limit for INN (nnrpd really) is 1000 chars. The max header size, after un-folding, is 1024. So if you keep the header on 1 line, you need to limit the length to 997 characters before adding the CR LF. (997 instead of 998 because of a bug in the code which has been in inn for a long time - but I'm told my patch which fixes that bug was applied to 2.0 - haven't checked to see). % grep 1000 nnrpd/*.h nnrpd/nnrpd.h:#define ART_LINE_LENGTH 1000 Because the 1000 char limit is in nnrpd, it only applies to articles posted on an inn system. For articles transfered (IHAVE/TAKETHIS) only the 1024 max header length limit applies. They are both so close however that it would be silly to use the 1024 limit instead of the 1000 char limit. And, after looking at this problem, it seems wrong to me to keep more than 1000 bytes of references:. That is, even if the servers were changed to allow larger headers, I just don't think it makes much sense to waste that much bandwidth (and overview storage) on References: headers. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads