🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.notes
Article #137

Modification for 2.10 news feed - (nf)

#137
From: utzoodecvaxharpoeaglemhtsaalicen...
Date: Thu, 31 Mar 1983 10:06
30 lines
1164 bytes
#N:ihlpf:7700003:  0:696
ihlpf!nickles    Mar 31  9:41:00 1983

If your notes program gets a feed from news version 2.10, the
internet address format can play mean games to what notes thinks
is the author's original site.  The formats are:

Old format
	Asite.seqno		(ex: ihlpf.453)

New format
	A<seq@site.UUCP>	(ex: 453@ihlpf.UUCP)

I added the following code to newsinput.c, at the first fscanf to
fix this problem (line 91 in my code).  Change line

    fscanf(rawnews, "%[^.].%ld", origsys, &newsseq);

to 

	fscanf(rawnews, "%[^<.]", origsys);
	if (*origsys != '\0')
		fscanf(rawnews, ".%ld", &newsseq);
	else
		fscanf(rawnews, "<%ld@%[^.]", &newsseq, origsys);

This should parse both formats correctly.

					Jack Nickles
					[...ihnss!] ihlpf!nickles
Technical Details
Message-ID: <bnews.ihlpf.119>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!decvax!harpo!eagle!mhtsa!alice!npoiv!npois!houxm!houxz!ihnp4!ihlpf!nickles
Newsgroups: net.notes
Title: Modification for 2.10 news feed - (nf)
Article-I.D.: ihlpf.119
Posted: Thu Mar 31 10:06:11 1983
Received: Fri Apr  1 06:45:13 1983
Subject: Modification for 2.10 news feed - (nf)
Date: Thu, 31 Mar 1983 10:06:11 +0000
Message-ID: <bnews.ihlpf.119>