🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #8389

Re: nn and msnews.microsoft.com (fix included)

#8389
From: Minh Tran-Le
Date: Fri, 24 Jan 1997 00:00
81 lines
3606 bytes
In <5c4icu$9re@white.koehntopp.de> KRIS@KOEHNTOPP.DE (Kristian =?ISO-8859-1?Q?K=F6hntopp?=) writes:

>KRIS@KOEHNTOPP.DE (Kristian Koehntopp) writes:
>>newgroups yymmdd hhmmss ["GMT"] [<distributions>]

>The "LIST active.times" command, which is supported by INN and
>MSIN, is the correct command to use. "LIST active.times" is not
>an official NNTP command and is not mentioned in the INN online
>help (when you type "help" into an NNRP connection).

>nn uses "LIST active.times", because the local spool version of
>nn accesses $NEWSLIB/active.times to find new newsgroups
>created since the last use. The NNTP support for this feature
>is a hack (see db.c:readtimfile()) and works with INN only.

>Instead the command "newgroups" with a syntax as shown quoted
>should be used. "newgroups" output is not in "active.times"
>format, though, so code is needed to handle this transparently.


Well,
thanks for "Kristian Koehntopp" for pointing me in the right direction.
There was on thing wrong with nn code and one thing different about
the microsoft news server:

- When you do "LIST noexisting_file" you get a "501 syntax error" instead
  of a "503 program fault" as nn was expecting.

- The output of the "LIST" command with the microsoft news server gives
  back a line with article number that are not padded with 0 like the inn
  server would do. And trigger a bug in nn which skipped over the first 
  digit.

	inn       =>	news.group.name 0000000368 0000000250 y
	microsoft =>	news.group.name 368 250 y

  and nn would get the 'last article number' 68 and 'first article' 250
  instead of 368 and 250.

So here is the 2 small patch to nn-6.5.1 source code for people that wants
to use nn on the microsoft news server.  But as the microsoft news server
does not support "LIST active.times" newgroups will not be added 
automatically to your ~/.newsrc files.

Minh Tran-Le (tranle@intellicorp.com)
---------------------------------------------------------------------------

*** db.c.~1~	Wed Jan 22 15:07:17 1997
--- db.c	Fri Jan 24 15:24:34 1997
***************
*** 1455,1459 ****
  	p = actlist[num];
  	if (p != NULL) {
! 	    gh->last_a_article = atol(++p);
  	    p = strchr(p, ' ');
  	    if (p == NULL)
--- 1455,1460 ----
  	p = actlist[num];
  	if (p != NULL) {
! 	    while (isspace(*p)) ++p;
! 	    gh->last_a_article = atol(p);
  	    p = strchr(p, ' ');
  	    if (p == NULL)
*** nntp.c.~1~	Sun Aug 25 21:09:08 1996
--- nntp.c	Wed Jan 22 13:52:14 1997
***************
*** 550,554 ****
       */
      if (response == ERR_GOODBYE || response > ERR_COMMAND) {
! 	if (fix_err && response == ERR_FAULT) return ERR_NOGROUP;
  
  	nntp_failed = 1;
--- 550,554 ----
       */
      if (response == ERR_GOODBYE || response > ERR_COMMAND) {
! 	if (fix_err && (response == ERR_FAULT || response == ERR_CMDSYN)) return ERR_NOGROUP;
  
  	nntp_failed = 1;

Technical Details
Message-ID: <5cbiat$hf0@theoden.intellicorp.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
References: <5c3bsu$c96@theoden.intellicorp.com> <5c4hol$9qn@white.koehntopp.de> <5c4icu$9re@white.koehntopp.de>

Show Full Headers
Complete Article Headers
Message-ID: <5cbiat$hf0@theoden.intellicorp.com>
Subject: Re: nn and msnews.microsoft.com (fix included)
Date: Fri, 24 Jan 1997 00:00:00 +0000
From: mtranle@theoden.intellicorp.com (Minh Tran-Le)
References: <5c3bsu$c96@theoden.intellicorp.com> <5c4hol$9qn@white.koehntopp.de> <5c4icu$9re@white.koehntopp.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
X-Deja-AN: 212080316
Organization: IntelliCorp Inc.
Reply-to: tranle@intellicorp.com
Newsgroups: news.software.nn