🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #140

on virtual groups

#140
From: Aryeh M. Friedman
Date: Thu, 27 Jun 1991 06:46
28 lines
2066 bytes
I think making virtual groups just unions of one or more groups is very narrow
minded.  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.  The way to do this is
to make some rules about how and when to include or exclude articles from the
virtual group.   BTW I am currently in the design phase of adding this to rn,
actually my own sub-branch of rn 4.3.3 called 4.3.4.  Here is a example of
a virtual group rule for finding all new unread thread root nodes (i.e. first
article in the thread):

# rules for "aryeh.new" this virt group will hold the root nodes of all new
# threads in groups I subscripe to
#
# set search scope.  note wild cards are ignored when not needed
set scope="*"
#
# RULE 1: find all new root nodes
for i="" to scope	# loop from front of newsrc to end
	if(status(i)=="SUB") {	# if we are subscriped do the following
		for art=first_art(i) to last_art(i)  # loop thru all articles
			if(header("References",art)=="") add(art);
			# if it is root node add it to the group (we assume all
			# threads use the ref header
end rule

Please tell me if you like the idea and the format of the above.  Also if anyone
can think a good non-cryptic (at least not more cryptic) to avoid it look like 
code good please say so.  Also do you think that looping should be assumed.
Technical Details
Message-ID: <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!mcsun!uunet!spool.mu.edu!agate!darkstar!cash!aryeh

Show Full Headers
Complete Article Headers
Message-ID: <17507@darkstar.ucsc.edu>
Subject: on virtual groups
Date: Thu, 27 Jun 1991 06:46:31 +0000
From: aryeh@ucsc.edu (Aryeh M. Friedman)
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!mcsun!uunet!spool.mu.edu!agate!darkstar!cash!aryeh
Newsgroups: news.software.readers
Sender: usenet@darkstar.ucsc.edu
Organization: UC Santa Cruz, Dept. of Economics
Lines: 28
Originator: aryeh@cash