🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #147

Re: on virtual groups

#147
From: Ed Vielmetti
Date: Thu, 27 Jun 1991 16:17
39 lines
2158 bytes
Aryeh Friedman, in <17507@darkstar.ucsc.edu>, says

  Since now that we have virtual groups we can do stuff like make
  filters to decide what goes in the group for example: everything
  that is in reply to what I have posted should be placed in a virtual
  group.

And I must agree that this is the right thing to do.  But it remains
to be seen just what sort of a language you'd want to describe this
in.  (I view comp.archives as "just" a virtual newsgroup with some
additional tagging done, and even that might be automatable.)

to deconstruct his example.

one thing you need to be able to specify is which newsgroups you're
going to comb through to find stuff.  there's several traditional ways
to specify this: one is a sys file entry style, like
   $scopesys = "all,!alt.sex.pictures,!alt.binaries.pictures";
another is with regular expressions
   $scoperegexp = "*,!*.binaries,!*.pictures,*.binaries.d,*.pictures.d"
and then there's an explicit newsrc format, something like
   @scope = ("comp.archives","dnet.archiv","aus.archives","ont.archives");
where you'd imagine functions like
   @scope = &expandbysys($scopesys);
   @scope = &expandbyregexp($scoperegexp);
doing all of the work.

Then you have a natural loop that looks something like

foreach $ng (@scope) { do process($ng); }

or construct an associative array so that
	defined $inscope{$ng}
has the proper behavior.

(examples are in perl, more to follow.)

--Ed
Technical Details
Message-ID: <EMV.91Jun27121742@bronte.aa.ox.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!fauern!math.fu-berlin.de!ox.com!msen.com!emv
References: <17507@darkstar.ucsc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <EMV.91Jun27121742@bronte.aa.ox.com>
Subject: Re: on virtual groups
Date: Thu, 27 Jun 1991 16:17:48 +0000
From: emv@msen.com (Ed Vielmetti)
References: <17507@darkstar.ucsc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!fauern!math.fu-berlin.de!ox.com!msen.com!emv
Newsgroups: news.software.readers
Sender: usenet@ox.com (Usenet News Administrator)
Organization: MSEN, Inc. Ann Arbor MI
Lines: 39
In-Reply-To: aryeh@ucsc.edu's message of 27 Jun 91 06:46:31 GMT