🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Richard Kennaway CMP RA Tue, 13 Nov 1990 15:59
classifying newsgroups in nn
#1086
Author: Richard Kennaway CMP RA
Date: Tue, 13 Nov 1990 15:59
69 lines
3634 bytes
Like most readers of news, I read some groups for professional reasons, and
some for recreation.  Naturally, I try to read the "serious" groups at work,
and the recreational ones on my own time.  I've set up my presentation
sequence to show me first the serious groups, then the others, but it is
difficult to resist the temptation to read just one more newsgroup, and then
just one more,...

What I would like is to be able to divide my subscribed newsgroups up into
classes, and when I invoke nn be able to tell it to only show me the
newsgroups in some specified class.

I havent found a way of doing this.  I could try having multiple .newsrc
files, containing different sets of subscriptions, and write shell scripts
along the lines of:

        mv .newsrc.serious .newsrc
        nn
        mv .newsrc .newsrc.serious

but this isnt very satisfactory.  One reason is that the expire system
relies on reading people's .newsrc files to find groups that no-one reads,
which it can expire faster.  The above method would defeat this.  Another
defect is that when a new group is created, I'll see it once for every
different newsgroup-class.

There doesnt seem to be any way of doing it by swapping .nn/init files
instead of .newsrc - the presentation sequence defined in .nn/init cannot
specify that certain newsgroups are not to be read.

Therefore I propose that the feature be built in to nn.  For example, allow
an extra field in the lines of the presentation sequence in .nn/init,
specifying the class of that newsgroup or family of newsgroups.  A single
digit would allow ten different classes, which may be enough.  Personally, I
would only need two classes, but people may find a use for more.

By default, the class mark would be ignored, but there would be a command
line option to cause nn to read only specified classes.  There would also
have to be a command for changing the class of a newsgroup, and when a new
newsgroup is discovered, then if class marks are used at all in the init
file, nn should ask which class to assign the new group to.

I could then have a presentation sequence looking like:

news.announce.important
NEW
sci.logic       0
comp.theory     0
comp.binaries.mac      0
sci.physics     1
talk*    1
rec*     1

etc., and define csh aliases:

alias serious   nn -c 0
alias frivolous nn -c 1

Then the command 'serious' would read only news.announce.important,
sci.logic, comp.theory, and comp.binaries.mac, while 'frivolous' would read
news.announce.important, sci.physics, and all subscribed-to talk and rec
groups.  Unmarked groups, unsequenced groups, and new groups would be read
by both commands.

Comments?  (If you want me to see them, please email me.  I do read this
group, but our news system regularly overflows and loses news.)

--
Richard Kennaway          SYS, University of East Anglia, Norwich, U.K.
Internet:  jrk@sys.uea.ac.uk		uucp:  ...mcvax!ukc!uea-sys!jrk
Re: classifying newsgroups in nn
#1443
Author: Kim F. Storm
Date: Thu, 07 Mar 1991 16:28
57 lines
2284 bytes
jrk@information-systems.east-anglia.ac.uk (Richard Kennaway CMP RA) writes:

>Like most readers of news, I read some groups for professional reasons, and
>some for recreation.  Naturally, I try to read the "serious" groups at work,
>and the recreational ones on my own time.  I've set up my presentation
>sequence to show me first the serious groups, then the others, but it is
>difficult to resist the temptation to read just one more newsgroup, and then
>just one more,...

>What I would like is to be able to divide my subscribed newsgroups up into
>classes, and when I invoke nn be able to tell it to only show me the
>newsgroups in some specified class.

Patch 12 contained a new "chain file" command which will allow you
to have different sequence files which are used instead of the
one specified in the init file.

For example, if you have a file "seq.serious" and a "seq.rec" each 
containing a selection of news groups, e.g.

	sequence
		comp*
		news.admin
		!!

and

	sequence
		rec*
		! comp*
		# other groups go here


then you can place this at the end of the init file to choose
either depending on the time of day:

	on `date +%H` 9 10 11 12 13 14 15 16
		chain seq.serious
	end
	chain seq.rec


>There doesnt seem to be any way of doing it by swapping .nn/init files
>instead of .newsrc - the presentation sequence defined in .nn/init cannot
>specify that certain newsgroups are not to be read.

You can specify this very easily in the sequence, e.g.

	! comp.sources.ibm.pc*
	! rec.music.beatles

etc.


-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads