🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by james c black Sun, 28 Feb 1993 04:19
Unsub to all groups?
#3825
Author: james c black
Date: Sun, 28 Feb 1993 04:19
5 lines
1004 bytes
    Is there any way to unsubscribe to all newsgroups?  By default, nn has
subscribed me to a zillion groups and I can't stand hitting  U  to unsubscribe
to each one individually.  I'm sorry if this is in the FAQ, but I haven't reached there yet :)
                                            James
Re: Unsub to all groups?
#3822
Author: Sven Guckes
Date: Mon, 01 Mar 1993 19:23
24 lines
1791 bytes
jcblac00@nx21.mik.uky.edu (james c black) writes:

>Is there any way to unsubscribe to all newsgroups?
>By default, nn has subscribed me to a zillion groups and
>I can't stand hitting  U  to unsubscribe to each one individually.

The newsrc file ($HOME/.newsrc) contains the information about the newsgroups,
their (un)subscribed status and the numbers of the already read articles.
A colon (':') indicates a subscribed group, and an exclamation mark ('!')
indicates an unsubscribed group.
All you need to do for unsubscribing to all newsgroups is to edit the newsrc.
Of course you can do this with your favourite editor.
If you have the 'stream editor' "sed" then you can also do it this way:

	sed -e 's/:/!/' ~/.newsrc > newsrc.all.unsubscribed

This tells sed to 's'earch for the first ':' and to replace it with a '!'
in each line of the file "~/.newsrc" and to put the result into the file
"newsrc.all.unsubscribed".
Now all you have to do is to replace your newsrc with "newsrc.all.unsubscribed":

	mv newsrc.all.unsubscribed ~/.newsrc

Sven :)
Re: Unsub to all groups?
#3828
Author: Kristian Koehntopp
Date: Tue, 02 Mar 1993 08:48
16 lines
1659 bytes
In <jcblac00.730873175@mik.uky.edu> jcblac00@nx21.mik.uky.edu (james c black) writes:
>    Is there any way to unsubscribe to all newsgroups?  By default, nn has
>subscribed me to a zillion groups and I can't stand hitting  U  to unsubscribe
>to each one individually.  I'm sorry if this is in the FAQ, but I haven't reached there yet :)

$ cat .newsrc | sed -e 's/:/!/' > newsrc.new
$ mv newsrc.new .newsrc

Some versions of the csh need the ! being escaped as \! even if
it is enclosed in '' (NeXT csh for example).

Kristian
-- 
Kristian Koehntopp, Harmsstrasse 98, DW-2300 Kiel, +49 431 676689
"Definition of a workstation: I have a workstation, You have a PC, They use
 terminals." -- David Shepherd
Re: Unsub to all groups?
#3842
Author: Nancy McGough
Date: Fri, 05 Mar 1993 03:27
44 lines
2157 bytes
Another option is to stay subscribed to all groups and 
edit your ~/.nn/init file so that only newsgroups you 
care about are presented.  For example, here's a
kind-of template for an init file:

--begin--

# Put variable settings, key mappings, macro definitions,
# command groups, etc. at the beginning.

# Group presentation sequence must be last part of the file.

# If you want your sequence to be exactly as you list it
# then you want to unset also-subgroups (see man pages).
unset also-subgroups

sequence
 news.software.nn +nn
 news.software.readers +newsreaders
 news.announce.newusers +newusers
 news.questions.newusers +newusers
 <other groups you want to read>
 NEW
 !!

# NEW means present new newsgroups here.
# !! means don't present any other newsgroups.  
# There are lots of other options.  I use !:U instead of
# !! so that subscribed-to newsgroups that haven't
# already been presented are presented last.

--end-- 

The text after the group name (like +nn) isn't necessary--
it specifies the default save file.

To find out more search for GROUP PRESENTATION SEQUENCE
in the man pages.

Good luck,
 -Nancy

-- 
nancym@u.washington.edu
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