From:	ADVAX::"mcnc!VM1.NoDak.EDU!ake%DAYTON.SAIC.COM" "Earle Ake"  2-MAY-1991 23:52:56.02
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
CC:	
Subj:	RE: Misuse, confusion, re "Distribution:" header?

Received: by ADVAX.DECnet (utk-mail11 v1.5) ; Thu, 2 May 91 23:52:34 EDT
Received:  from mcnc by ge-dab.GE.COM (5.61/GE-DAB 1.15) with UUCP
	id AA14598 for ; Thu, 2 May 91 23:18:35 -0400
Received: from VM1.NoDak.EDU by mcnc.mcnc.org (5.59/MCNC/3-21-91)
	id AA11381; Thu, 2 May 91 21:12:29 -0400
	for ARISIA.DNET.ge.com!EVERHART
Message-Id: <9105030112.AA11381@mcnc.mcnc.org>
Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP R1.2.1MX) with BSMTP id 6191; Thu, 02 May 91 20:12:07 CDT
Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id
 6757; Thu, 02 May 91 20:12:05 CDT
Date:         Thu, 2 May 91 13:56:06 GMT
Reply-To: Earle Ake <mcnc!VM1.NoDak.EDU!ake%DAYTON.SAIC.COM>
Sender: ANU-NEWS Discussion <ANU-NEWS@VM1.NoDak.EDU>
From: Earle Ake <mcnc!VM1.NoDak.EDU!ake%DAYTON.SAIC.COM>
Subject:      RE: Misuse, confusion, re "Distribution:" header?
To: Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
 
In article <9105012315.AA04627@jatz.aarnet.edu.au>, G.Huston@AARNET.EDU.AU write
s:
>>Geoff: Thanks for the one-liner fix.  Unfortunately it is impossible to
>>be 100% sure where the one-liner goes!  Could you please post it again as
> a
>>context diff, and VMS_SHARE it if lines exceed 80 chars.  I know this is a
>>pain, but the only identification is a '}' and they all look alike....
>
>
> whoops - at the end of last while loop in test_accept - this loop sets d to
> each entry in the distribution filter - the one line fix then sets d to the
> newsgroup filter is the two filter sets are different.
 
 
Here are the context differences.
 
 
Earle
_____________________________________________________________________________
             ____ ____    ___
Earle Ake   /___ /___/ / /     Science Applications International Corporation
           ____//   / / /__                 Dayton, Ohio
-----------------------------------------------------------------------------
Internet: ake@dayton.saic.com        uucp: dayvb!ake         SPAN: 28284::ake
 
 
 
*** newsdist.c;-1
--- newsdist.c
**************
*** 13,19
  **      Geoff Huston
  **
  **  COPYRIGHT:
! **      Copyright ) 1989,1990
  **
  **
  **  CONTRIBUTIONS
--- 13,19 -----
  **      Geoff Huston
  **
  **  COPYRIGHT:
! **      Copyright ) 1989,1990,1991
  **
  **
  **  CONTRIBUTIONS
**************
*** 26,31
  **      sys_accept_group(newsgroup)
  **      sys_remote_send(path,newsgroups,distribution,item_file,message_id,net)
  **      path_match(path,news_node)
  **--
  **/
 
 
 
 
 
 
 
 
 
 
--- 26,36 -----
  **      sys_accept_group(newsgroup)
  **      sys_remote_send(path,newsgroups,distribution,item_file,message_id,net)
  **      path_match(path,news_node)
+ **
+ **  VERSION HISTORY
+ **    V6.0-4  30/4/91 gh
+ **            Modify filter acceptance algorithm to match distribution
+ **            keywords against newsgroup filter list.
  **--
  **/
 
 
 
 
 
 
 
 
 
 
**************
*** 692,697
            }
          }
        d = d->sys_fnext;
        }
      if (ngaccept == 1) accept = 1;
      cp1 = cp2;
--- 697,707 -----
            }
          }
        d = d->sys_fnext;
+               /* some brain-dead news systems put the top level
+                  hierarchy in as the distribution keyword - so the
+                  newsgroup filter should also be matched against
+                  the distribution string */
+       if (!d && (d_sav != f_sav)) d = f_sav;
        }
      if (ngaccept == 1) accept = 1;
      cp1 = cp2;
