From:	ADVAX::"mcnc!VM1.NoDak.EDU!glass%VIXVAX.MGI.COM" "William H. Glass"  4-APR-1991 06:47:06.82
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
CC:	
Subj:	Problem with NNTP_SERVER LIST command

Received: by ADVAX.DECnet (utk-mail11 v1.5) ; Thu, 4 Apr 91 06:44:37 EST
Received:  from mcnc by ge-dab.GE.COM (5.61/GE-DAB 1.15) with UUCP
	id AA16424 for ; Thu, 4 Apr 91 06:20:48 -0500
Received: from VM1.NoDak.EDU by mcnc.mcnc.org (5.59/MCNC/3-21-91)
	id AA04802; Thu, 4 Apr 91 05:29:00 -0500
	for ARISIA.DNET.ge.com!EVERHART
Message-Id: <9104041029.AA04802@mcnc.mcnc.org>
Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP R1.2.1MX) with BSMTP id 2153; Thu, 04 Apr 91 04:28:24 CST
Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id
 6744; Thu, 04 Apr 91 04:28:21 CST
Date:         Thu, 4 Apr 91 05:45:07 GMT
Reply-To: "William H. Glass" <mcnc!VM1.NoDak.EDU!glass%VIXVAX.MGI.COM>
Sender: ANU-NEWS Discussion <ANU-NEWS@VM1.NoDak.EDU>
From: "William H. Glass" <mcnc!VM1.NoDak.EDU!glass%VIXVAX.MGI.COM>
Subject:      Problem with NNTP_SERVER LIST command
To: Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
 
Terry Combs (COMBSTM@CONRAD.APPSTATE.EDU) reported a problem with the
NNTP_SERVER's LIST command to me.  When using the LIST NEWSGROUPS or
LIST ACTIVE or LIST DISTRIBUTIONS commands, it is necessary for the
parameter to be in lower case.  This is not a problem when using
ANU-NEWS as the client, because it doesn't use any of those commands with
an ANU-NEWS server.  However, if you're using another client, you may
encounter this problem.
 
Here's a simple one line fix to the list routine in NNTP_SERVER.C
 
static
list(argc,argv,stm)
  int argc;
  char *argv[];
  int stm;
{
  char post_char;
  int list_sw = 1;
 
  if (argc > 2) return(write_net(msg[M501],stm));
  if (argc == 2) {
    lower_case(argv[1]);                                /* NEW */
    if (!strcmp(argv[1],"active")) list_sw = 1;
    else if (!strcmp(argv[1],"newsgroups")) list_sw = 2;
    else if (!strcmp(argv[1],"distributions"))list_sw = 3;
    else return(write_net(msg[M501],stm));
    }
 
Bill Glass
