🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Ng Pek Yong Tue, 10 Sep 1996 00:00
'References:' tag too long
#10760
Author: Ng Pek Yong
Date: Tue, 10 Sep 1996 00:00
16 lines
930 bytes
Recently, some of my users complained they are getting
'Bad Overview Record' error while accessing news articles.

I did some checking and found that if the 'References:' tag of the article
gets too long (>900 bytes?) it will cause the error.

I am sure this problem is very common. Question is, how is the
problem handled?(besides going in to remove the Ref ID!!) 

BTW, the client program is tin, could that be a problem?

Thanks.


Re: 'References:' tag too long
#10778
Author: Ollivier Robert
Date: Tue, 10 Sep 1996 00:00
20 lines
1344 bytes
    [courtesy cc of this posting sent to cited author via email]
    [invalid distribution: inet removed]

In article <512vai$f29@mercury.starnet.gov.sg>,
Ng Pek Yong <npekyong@starnet.gov.sg> wrote:
> I am sure this problem is very common. Question is, how is the
> problem handled?(besides going in to remove the Ref ID!!) 
> 
> BTW, the client program is tin, could that be a problem?

The primary problem is TIN of course. The solution is either to use another
client or to modify it to follow son-of-rfc1036 instructions on how to cut
down References: size. You SHOULD keep at least the first entry and the
last three ones in References:.
-- 
Ollivier ROBERT   -=- Eurocontrol EEC/TIS -=-   Ollivier.Robert@eurocontrol.fr
Usenet Canal Historique

Re: 'References:' tag too long
#10786
Author: Bruce Becker
Date: Wed, 11 Sep 1996 00:00
30 lines
1619 bytes
In article <512vai$f29@mercury.starnet.gov.sg>,
Ng Pek Yong <npekyong@starnet.gov.sg> wrote:
|Recently, some of my users complained they are getting
|'Bad Overview Record' error while accessing news articles.
|
|I did some checking and found that if the 'References:' tag of the article
|gets too long (>900 bytes?) it will cause the error.
|
|I am sure this problem is very common. Question is, how is the
|problem handled?(besides going in to remove the Ref ID!!) 
|
|BTW, the client program is tin, could that be a problem?


	Yes, the relevant buffer in Tin is too small.  There
	is a fix, or you could upgrade to Tin 1.3beta.


	Followups set to news.software.readers, where more
	details are available...


-- 
  ,u,	 Bruce Becker		Toronto, Ontario	1 416 699 1868
a /i/	 Internet: bdb@gts.org	Uucp: ...!gts!bdb
 `\o\-e	 "De Boer also creates protective gear for humans [...] including
 _< /_	 	a Roman catapult that hurls fax machines"  - J. Prittie

Re: 'References:' tag too long
#10800
Author: billy
Date: Wed, 11 Sep 1996 00:00
259 lines
7759 bytes
Ng Pek Yong <npekyong@starnet.gov.sg> writes:

> Recently, some of my users complained they are getting
> 'Bad Overview Record' error while accessing news articles.

This is a tin problem, see my appended fix for that.

> I did some checking and found that if the 'References:' tag of the article
> gets too long (>900 bytes?) it will cause the error.

It's actually 1024, and regardless of tin I suggest keeping this to
1023 or less bytes or it'll croak somewhere down stream from you..

Tin also does not fold header lines, nor can it read continuation
lines (v1.2 anyway) - this is yet another tin problem.  It may be
fixed or better in later versions but none of those is out of beta
yet...

Billy Y..

Subject: Re: Help: Bad Overview records
>From: billy@mix.com
Newsgroups: news.software.readers
Organization: Billy's Place

Farooq Azam <azam@rooster.ee.vt.edu> writes:

> At our site we get lots of bad overview record messages while running
> tin news reader. Is there a fix for it? Do we have to recompile tin with
> some special option(s)?

Since you're using tin v1.2 PL2 you can either try the v1.3 beta
test version from ftp://ftp.scn.de/pub/news/tin/tin-beta.tar.gz or
an improved version of it at ftp://ftp.akk.uni-karlsruhe.de/pub/tin/
(look for the latest one) or you can make the following changes to
the v1.2 PL2 sources and keep what you now have.

First, replace the read_xover_file function in art.c with the one
appended to this article.

Then in nntplib.c in its get_server function find these lines (near
the end) -

        if ((cp = (char *) strchr (string, '\r')) != NULL) {
                *cp = '\0';
        } else if ((cp = (char *) strchr (string, '\n')) != NULL) {
                *cp = '\0';
        }

and change the two instances of strchr to strrchr -

        if ((cp = (char *) strrchr (string, '\r')) != NULL) {
                *cp = '\0';
        } else if ((cp = (char *) strrchr (string, '\n')) != NULL) {
                *cp = '\0';
        }

This stops truncation of any overview record by embedded returns
and line feeds, ala yita@ix.netcom.com (yita^M) where the ^M is a
return.  It may be something else is supposed to filter these out
before they ever get to tin, but at least where I read news this
has proven itself a useful addition as otherwise the articles are
not sortable and that means they won't show up in what tin says
are available to read.

Billy Y..

int
read_xover_file (group_name, min, max)
	char *group_name;
	long min;
	long max;
{
 	char	*p, *q;
	char	buf[8192];
 	char	art_full_name[LEN];
	char	art_from_addr[LEN];
	char	err_scratch_buff[LEN];	/* PL7 */
	FILE	*fp;
	 
	top = 0;
	last_read_article = 0L;
 
	/* 
	 * setup the overview file (whether it be local or via nntp)
	 */
	if ((fp = open_xover_fp (group_name, min, max)) == (FILE *) 0) {
		return FALSE;
	}
 
	while (fgets (buf, sizeof (buf), fp) != (char *) 0) {
		if (strcmp (buf, ".") == 0) {
			break;
		}
 
		if (top >= max_art) {
			expand_art ();
		}
 
		arts[top].thread = ART_EXPIRED;
		set_article (&arts[top]);
 
		p = buf;
 
		/* 
		 * read the article number 
		 */
		last_read_article = arts[top].artnum = atol (p);
		q = strchr (p, '\t');
		if (q == (char *) 0) {
			error_message ("Unreadable article - No NOV delimiters for:\r\n%s\r\n", p);	/* PL7 */
			continue;
		} else {
			p = q + 1;
		}
 
		/* 
		 * READ subject 
		 */
		q = strchr (p, '\t');
			if (q == (char *) 0) {
			sprintf (err_scratch_buff, "Unsortable article #%ld - No NOV delimiter for:\r\n_Subject: %s\r\n", last_read_article, p);	/* PL7 */
			error_message (err_scratch_buff, "");	/* PL7 */
			debug_nntp ("read_xover_file", "Bad overview record (Subject)");
			continue;
		} else {
			*q = '\0';
		}
		arts[top].subject = hash_str (eat_re (eat_re (p)));
		p = q + 1;
 
		/* 
		 * READ author 
		 */
		q = strchr (p, '\t');
		if (q == (char *) 0) {
			sprintf (err_scratch_buff, "Unsortable article #%ld - No NOV delimiter for:\r\n_From: %s\r\n", last_read_article, p);	/* PL7 */
			error_message (err_scratch_buff, "");	/* PL7 */
			debug_nntp ("read_xover_file", "Bad overview record (From)");
			continue;
		} else {
			*q = '\0';
		}
		parse_from (p, art_from_addr, art_full_name);
		arts[top].from = hash_str (art_from_addr);
		if (art_full_name[0]) {
			arts[top].name = hash_str (art_full_name);
		}
		p = q + 1;
 
		/* 
		 * READ article date 
		 */
		q = strchr (p, '\t');
		if (q == (char *) 0) {
			sprintf (err_scratch_buff, "Unsortable article #%ld - No NOV delimiter for:\r\n_Date: %s\r\n", last_read_article, p);	/* PL7 */
			error_message (err_scratch_buff, "");	/* PL7 */
			debug_nntp ("read_xover_file", "Bad overview record (Date)");
			continue;
		} else {
			*q = '\0';
		}
		arts[top].date = parsedate (p, NULL);
		p = q + 1;
 
		/* 
		 * SKIP article messageid 
		 */
		q = strchr (p, '\t');
		if (q == (char *) 0) {
			sprintf (err_scratch_buff, "Can't parse #%ld LINES, XREF - No NOV delimiter for MESSAGE-ID\r\n", last_read_article);	/* PL7 */
			error_message (err_scratch_buff, "");
			debug_nntp ("read_xover_file", "Bad overview record (Msg-ID)");
			continue;
		}
		p = q + 1;
 
		/* 
		 * SKIP article references 
		 */
		q = strchr (p, '\t');
		if (q == (char *) 0) {
			sprintf (err_scratch_buff, "Can't parse #%ld LINES, XREF - No NOV delimiter for REFERENCES\r\n", last_read_article);	/* PL7 */
			error_message (err_scratch_buff, "");
			debug_nntp ("read_xover_file", "Bad overview record (References)");
			continue;
		}
		p = q + 1;
 
		/* 
		 * SKIP article bytes 
		 */
		q = strchr (p, '\t');
		if (q == (char *) 0) {
			sprintf (err_scratch_buff, "Can't parse #%ld LINES, XREF - No NOV delimiter for BYTES\r\n", last_read_article);	/* PL7 */
			error_message (err_scratch_buff, "");
			debug_nntp ("read_xover_file", "Bad overview record (Bytes)");
			continue;
		} else {
			*q = '\0';
		}
		p = q + 1;
 
		/* 
		 * READ article lines (special case - last standard nov header)
		 */
		q = strchr (p, '\t');
		if (q == (char *) 0) {
			if (!*p || (*p < '0' && *p > '9')) {
			sprintf (err_scratch_buff, "Can't parse #%ld LINES, XREF - No NOV delimiter for LINES\r\n", last_read_article);	/* PL7 */
				error_message (err_scratch_buff, "");	/* PL7 */
				debug_nntp ("read_xover_file", "Bad overview record (Lines)");
				continue;
			}
		} else {
			*q = '\0';
		}
		arts[top].lines = atoi (p);
		p = (q == (char *) 0 ? (char *) 0 : q + 1);
 
		/* 
		 * READ article xrefs
		 */
		if (p != (char *) 0 && xref_supported) {
			q = str_str (p, "Xref: ", 6);
			if (q != (char *) 0) {
				p = q + 6;
				q = p;
				while (*q && *q != '\t') {
					q++;
				}
				*q = '\0';
				q = strrchr (p, '\n');
				if (q != (char *) 0) {
					*q = '\0';
				}
				q = p;
				while (*q && *q == ' ') {
					q++;
				}
				arts[top].xref = str_dup (q);
			}
		}

		/* 
		 * end of overview line processing 
		 */
		debug_print_header (&arts[top]);
 
		top++;
	}
 	fclose (fp);
 	
	return TRUE;
}


Re: 'References:' tag too long
#10809
Author: Steve Howie
Date: Wed, 11 Sep 1996 00:00
31 lines
1844 bytes
Ollivier Robert (Ollivier.Robert@eurocontrol.fr) wrote:
:     [courtesy cc of this posting sent to cited author via email]
:     [invalid distribution: inet removed]
: 
: In article <512vai$f29@mercury.starnet.gov.sg>,
: Ng Pek Yong <npekyong@starnet.gov.sg> wrote:
: > I am sure this problem is very common. Question is, how is the
: > problem handled?(besides going in to remove the Ref ID!!) 
: > 
: > BTW, the client program is tin, could that be a problem?
: 
: The primary problem is TIN of course. The solution is either to use another
: client or to modify it to follow son-of-rfc1036 instructions on how to cut
: down References: size. You SHOULD keep at least the first entry and the
: last three ones in References:.

The latest TIN betas have fixed this problem (1.3 and all its offspring)

Scotty
=================================================================
Steve Howie                             Email:  showie@uoguelph.ca
NetNews and Listserv Admin.             Phone:  (519) 824-4120 x2556
Computing and Communications Svcs.      Fax:    (519) 763-6143
University of Guelph

If it's not Scottish its CRRRRRAAAAAAAAAAAAAAPPPPP
=================================================================


Re: 'References:' tag too long
#10819
Author: Ollivier Robert
Date: Thu, 12 Sep 1996 00:00
15 lines
1203 bytes
    [courtesy cc of this posting sent to cited author via email]
    [followups set to news.software.readers]

In article <5150of$bsu@ccshst05.uoguelph.ca>,
Steve Howie <showie@uoguelph.ca> wrote:
> The latest TIN betas have fixed this problem (1.3 and all its offspring)

Does TIN now use References: for threading or is it still using only
sorting ?
-- 
Ollivier ROBERT   -=- Eurocontrol EEC/TIS -=-   Ollivier.Robert@eurocontrol.fr
Usenet Canal Historique

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