Thread View: news.software.readers
4 messages
4 total messages
Started by billy
Thu, 27 Mar 1997 00:00
References headers > 512 bytes ?
Author: billy
Date: Thu, 27 Mar 1997 00:00
Date: Thu, 27 Mar 1997 00:00
60 lines
3317 bytes
3317 bytes
With respect to the maximum length of a references header in a news article tin v1.3unoff says in post.c - > /* Widespread news software like INN's nnrpd restricts the size of several > headers, notably the references header, to 512 characters. Oh well... > guess that's what son-of-1036 calls a "desparate last ressort" :-/ > From TIN's point of view, this could be HEADER_LEN. */ > #define MAXREFSIZE 512 Then shortly thereafter it goes on to say - > /* First of all: shortening references is a VERY BAD IDEA. Why weren't the excess references data folded into header continuation lines, instead of truncating as tin goes on to do? That is, does this 512 byte limit include continuation lines? Billy Y.. The rest of these comments are appended for reference - > Nevertheless, current software usually has restrictions in > header length (their programmers seem to misinterpret RFC821 > as valid for news, and the command length limit of RFC977 > as valid for headers) */ > /* construct a new references line, then trim it if necessary */ > /* do some sanity cleanups: remove damaged ids, make > sure there is space between ids (tabs and commas are stripped) */ > /* note that we're not doing strict son-of-1036 here: we don't > take any precautions to keep the last three message ids, but > it's not very likely that MAXREFSIZE chars can't hold at least > 4 refs */ [...] > /* son-of-1036 says: > Followup agents SHOULD not shorten References headers. If > it is absolutely necessary to shorten the header, as a des- > perate last resort, a followup agent MAY do this by deleting > some of the message IDs. However, it MUST not delete the > first message ID, the last three message IDs (including that > of the immediate precursor), or any message ID mentioned in > the body of the followup. If it is possible for the fol- > lowup agent to determine the Subject content of the articles > identified in the References header, it MUST not delete the > message ID of any article where the Subject content changed > (other than by prepending of a back reference). The fol- > lowup agent MUST not delete any message ID whose local part > ends with "_-_" (underscore (ASCII 95), hyphen (ASCII 45), > underscore); followup agents are urged to use this form to > mark subject changes, and to avoid using it otherwise. > [...] > When a References header is shortened, at least three blanks > SHOULD be left between adjacent message IDs at each point > where deletions were made. Software preparing new Refer- > ences headers SHOULD preserve multiple blanks in older Ref- > erences content. > */
Re: References headers > 512 bytes ?
Author: billy
Date: Wed, 02 Apr 1997 00:00
Date: Wed, 02 Apr 1997 00:00
20 lines
1420 bytes
1420 bytes
> Why weren't the excess references data folded into header continuation > lines, instead of truncating as tin goes on to do? That is, does this > 512 byte limit include continuation lines? To answer my own question, after a few days of informal testing I've found continuation lines are included enough of the time to be a real pain if this limit is exceeded. For instance at the place I'm posting this inews croaks at 514 bytes even though the read host is good up to 1033 bytes. Oh, well... Additionally, based on the number of arts I stumbled on that have headers truncated at 255 bytes it seems that would be a good point to fold them, although I believe this is caused by various text editors with small input buffers (like some versions of pico) not anything within the news transport system itself. Billy Y..
Re: References headers > 512 bytes ?
Author: Greg Berigan
Date: Wed, 02 Apr 1997 00:00
Date: Wed, 02 Apr 1997 00:00
21 lines
1435 bytes
1435 bytes
billy@mix.com wrote:
>Additionally, based on the number of arts I stumbled on that have
>headers truncated at 255 bytes it seems that would be a good point
>to fold them, although I believe this is caused by various text
>editors with small input buffers (like some versions of pico) not
>anything within the news transport system itself.
I sense an irony here, in that pico and pine tend to be used hand-in-
hand, yet pine posts with some of the largest message-IDs around,
exacerbating the problem.
--
_-<#)-=# http://cse.unl.edu/~gberigan/War-of-the-Worlds.html
___/___
_-~_--<###) "Take a look around you at the world we've come to know
<~c>' __--< Does it seem to be much more than a crazy circus show
\_--=____#) Maybe from the madness something beautiful will grow...."
Re: References headers > 512 bytes ?
Author: J$
Date: Fri, 04 Apr 1997 00:00
Date: Fri, 04 Apr 1997 00:00
48 lines
2558 bytes
2558 bytes
billy@mix.com [bmc]: >> Why weren't the excess references data folded into header continuation >> lines, instead of truncating as tin goes on to do? That is, does this >> 512 byte limit include continuation lines? bmc] To answer my own question, after a few days of informal testing bmc] I've found continuation lines are included enough of the time to bmc] be a real pain if this limit is exceeded. For instance at the bmc] place I'm posting this inews croaks at 514 bytes even though the bmc] read host is good up to 1033 bytes. Oh, well... RFC1036 prescribes allowing at least 1000 octets, I recall. But yes, some inews versions don't meet that criterium and mess up refs. bmc] Additionally, based on the number of arts I stumbled on that have bmc] headers truncated at 255 bytes it seems that would be a good point bmc] to fold them, although I believe this is caused by various text bmc] editors with small input buffers (like some versions of pico) not bmc] anything within the news transport system itself. Not too hot an idea. Some news transports choke on continued References. Sticking to the RFC requirements, within reason, seems the best thing to do, IMHO. rfc (if memory serves): - no line length limit should be imposed, but if imposing a restriction can't be avoided for some reason, at least 1000 octets should be handled - references should be preserved ideally, but if they _must_ be restricted, at the first, the last three and all ids mentioned in the body must be preserved practical consideration: - continued lines aren't handled properly by some news server software Combining all this, I'd say a the best bet for a newsreader is fitting as much references as will fit on a single line that's below minimum that must be allowed. Keeping the first, and as much references as possible from the end. -- J$
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