From:	ADVAX::"mcnc!VM1.NoDak.EDU!G.Huston%AARNET.EDU.AU" 10-MAR-1991 23:27:10.77
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
CC:	
Subj:	Re: XGTITLE vs LIST NEWSGROUPS

Received: by ADVAX.DECnet (utk-mail11 v1.5) ; Sun, 10 Mar 91 23:26:09 EST
Received:  from mcnc by ge-dab.GE.COM (5.61/GE-DAB 1.15) with UUCP
	id AA03301 for ; Sun, 10 Mar 91 23:03:58 -0500
Received: from VM1.NoDak.EDU by mcnc.mcnc.org (5.59/MCNC/6-11-90)
	id AA29251; Sun, 10 Mar 91 22:03:42 -0500
	for ARISIA.DNET.ge.com!EVERHART
Message-Id: <9103110303.AA29251@mcnc.mcnc.org>
Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP R1.2.1MX) with BSMTP id 2943; Sun, 10 Mar 91 21:04:33 CST
Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id
 4592; Sun, 10 Mar 91 21:04:32 CST
Date:         Mon, 11 Mar 91 13:01:06 +1000
Reply-To: mcnc!VM1.NoDak.EDU!G.Huston%AARNET.EDU.AU
Sender: ANU-NEWS Discussion <ANU-NEWS@VM1.NoDak.EDU>
From: mcnc!VM1.NoDak.EDU!G.Huston%AARNET.EDU.AU
Subject:      Re: XGTITLE vs LIST NEWSGROUPS
X-To:         Reg Quinton <reggers@RIA.CCS.UWO.CA>
X-Cc:         anu-news@vm1.nodak.edu
To: Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
 
To make ANU-NEWS use the approach:...
 
 
>2. tmc.edu Solution:
>
>Stan Barber's code instead extends the semantics of the "LIST" command to
>include these qualifiers:
>
>        LIST
>        LIST ACTIVE
>        LIST NEWSGROUPS
>        LIST DISTRIBUTIONS
>
>------
 
The changes to use LIST NEWSGROUPS as well / instead of XGTITLE are as
follows:
 
NEWSFILES.C
 
a) inittopics()
 
static int inittopics(cp)
  char *cp;
{
  char *tp;
  int g;
 
  if (tp = strchr(cp,'\n')) *tp = '\0';
  tp = cp;
  while (!isspace(*tp)) ++tp;
  if (!*tp) return;
  *tp++ = '\0';
  while (isspace(*tp)) ++tp;
  if (!*tp) return;
  lower_case(cp);
  if (g = ga_exact_name(cp)) {
    strncpy(ga[g]->grp_topic,tp,124);
    ga[g]->grp_topic[124] = '\0';
    }
}
 
 
b) open_groups()
 
 ...
 
WAS
 
  if (NNTP_USE_XGTITLE) nntp_get_info(nntp_node,nntp_proto,"XGNOTICE
*",282,0,inittopics);
 
CHANGED TO:
 
  if (!NNTP_USE_XGTITLE || !nntp_get_info(nntp_node,nntp_proto,"XGNOTICE
*",282,0,inittopics)) {
    nntp_get_info(nntp_node,nntp_proto,"LIST NEWSGROUPS",215,0,inittopics);
    }
 
 
Geoff
 
--
Geoff Huston                                        G.Huston@aarnet.edu.au
Network Technical Manager                               ph: +61 6 249 3385
Australian Academic and Research Network               fax: +61 6 247 3425
