🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
6 messages
6 total messages Started by Matthew England Sun, 08 Sep 1996 00:00
new-group-action = 4 not working??
#7945
Author: Matthew England
Date: Sun, 08 Sep 1996 00:00
75 lines
3969 bytes
Quoted from the faq:
> ------------------------------
> 
> Subject: 14.01 Setting new-group-action to "ask before adding" doesn't work.
> From: Peter Wemm <peter@dialix.oz.au>
> Date: Fri, 1 Oct 93 00:00:00 -0800
> 
>   Take NEW out of your sequence--it's redundant.

Does it HAVE to be taken out?  Will things still work as advertised if
it's in there?

> 
>   There was also a small bug (fixed in 6.5.0) which caused it to
>   not to work in certain situations.
> 
> From: Bill Wohler <wohler@newt.com>
> Date: Sun, 2 Jun 91 21:56:45 -0700
> 
>   By the way, if you find that taking NEW out of your sequence has no
>   effect, it may be that you're being affected by the system init file
>   (usually in /usr/local/lib/nn/init).  If this is the case, add "@"
>   to the beginning of your sequence, like this, which causes the
>   system init file to be ignored:

'@' causes the '!!' feature to be disabled.  So if you have one in your
~/.nn/init, kiss it goodbye.  And it doesn't appear as if '@' causes
the system init file to be ignored but rather just lets you add stuff
to the sequence (or redefine it) even if the system init had a '!!' in
it.  Nothing more.  Do I understand this correctly?

I couldn't get the "ask before adding" to work for the faq suggestions
or any other thing that I tried.  I'm using 6.5.1 NOV version (what
does NOV stand for, btw?).  If I blew away .newsrc, I could generate
behavior that seems follow the man page description for
new-group-action = 4.  And I didn't want to blow it (.newsrc) away.
Couldn't get the stuff to work after it was created, anyway.

I tried fooling with ~/.nn/LAST, too.  I think the mystery lies with
this file (what is the time-stamp format?  seconds since 1970 like what
is really stored in the machine, I think?  I didn't look too closely)
or another one the "certain situations" (as mentioned above) coming to
life.  I ended up deleting LAST thinking that nn should initialize
something and fix my problem, but that didn't seem to work, either.

My motivations:  1) Store *all* available newsgroups in .newsrc, and
filter them via a sequence in the init file at run time.  (A cli that
would spit out all the groups, preferrably with their purpose, to
stdout would avoid this need.  Something similar to what happens when a
'?' is input to the :post command.)  2) To be told of new groups when
they appear.

The only thing I could think of to solve this that would work was to
set new-group-action = 2 and to put NEW in my sequence.  But since I
had a large disparity (sp?) between the number of existing groups in
.newsrc and the number of new ones, going thru all the large, new (wrt
to my .newsrc) groups was taking forever.  So I made a totally new
.newsrc (using the method described above) to determine which groups
were actually new, stuck these new groups in the good .newsrc, and put
"1-1"'s at the end of each line.  And I let sequence do the rest.

Did I make any assumptions I shouldn't have?  eg, did I stomp on
anything without knowing it?  Was the approach reasonable?  Is another
way better to get done want I want?

Thanks for any help.
Matt
--
Matthew England
Systems Engineer                                 | voice: (630) 325-4151
National Peripherals Inc. (NPI), an MTI Company  |   fax: (630) 325-4230
1111 Pasquinelli Drive, Westmont, IL, 60559, USA |      mengland@npi.com

Re: new-group-action = 4 not working??
#7956
Author: R. Stewart Ellis
Date: Mon, 09 Sep 1996 00:00
57 lines
3463 bytes
mengland@npi.com (Matthew England) writes:

(... I have never used all those features of init such as @ and !!, so I am
not even sure what you are talking about.)

 >My motivations:  1) Store *all* available newsgroups in .newsrc, and
 >filter them via a sequence in the init file at run time.  (A cli that
 >would spit out all the groups, preferrably with their purpose, to
 >stdout would avoid this need.  Something similar to what happens when a
 >'?' is input to the :post command.)  2) To be told of new groups when
 >they appear.

 >The only thing I could think of to solve this that would work was to
 >set new-group-action = 2 and to put NEW in my sequence.  But since I
 >had a large disparity (sp?) between the number of existing groups in
 >.newsrc and the number of new ones, going thru all the large, new (wrt
 >to my .newsrc) groups was taking forever.  So I made a totally new
 >.newsrc (using the method described above) to determine which groups
 >were actually new, stuck these new groups in the good .newsrc, and put
 >"1-1"'s at the end of each line.  And I let sequence do the rest.

Do you necessarily want this incorporated in nn?  When you say cli, do you
mean at shell prompt?  If so, there is a newsgroup chooser called
choosenews, written by Scott Yanoff at UofWisc-Milwaukee.  It is a csh
script (yuck!) that presents the user with an opportunity to selectively add
newsgroups to the .newsrc according to keyword match either in the group
name or in the purpose statement.

This depends on the presence of a newsgroup list, so you could do the same
thing yourself with shell tools if you had the list.  I generate the list
with a program that is called getlist, that I believe comes with inn.  I
point getlist at the nntpserver and it generates a list of all the
newsgroups on the site with their purposes (if the list is up-to-date on the
server).  If you have access to the server you could probably just access
their group list.  There is probably also a way to fetch the list from the
nntp server by telnetting to port 119, but I am not sure.

 >Did I make any assumptions I shouldn't have?  eg, did I stomp on
 >anything without knowing it?  Was the approach reasonable?  Is another
 >way better to get done want I want?

 >Thanks for any help.
 >Matt
 >--
 >Matthew England
 >Systems Engineer                                 | voice: (630) 325-4151
 >National Peripherals Inc. (NPI), an MTI Company  |   fax: (630) 325-4230
 >1111 Pasquinelli Drive, Westmont, IL, 60559, USA |      mengland@npi.com

-- 
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)810-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt.Inst. ()  /   _____  ______
  Flint, MI 48504    Free speech and free software!  /\ /        / /  /  / /
  Web admin:  http://www.gmi.edu/      ellis@gmi.edu   /________/ /  /  / /

Re: new-group-action = 4 not working??
#7959
Author: Bill Wohler
Date: Tue, 10 Sep 1996 00:00
22 lines
1470 bytes
mengland@npi.com (Matthew England) writes:
> Do I need to do some combination like 
>     new-group-action = 24

  That is not the correct syntax.  Read the man page again (long yes,
  but I learn something new every time I do).

>to get things to work?  I tried this without any success.  (btw, in my
>~/.nn/init, keep-unsubscribed is not changed and is therefore,
>according to the man page, is set to "true".)

  One thing you need to be aware of is that your system administrator
  may have changed the compiled-in default (whew! I've forgotten the
  name of this file.  Was it /usr/local/lib/nn/init?).
-- 

Bill Wohler <wohler@newt.com>   ph: +1-415-854-1857  fax: +1-415-854-3195
Say it with MIME.  Maintainer of comp.mail.mh and news.software.nn FAQs.
If you're passed on the right, you're in the wrong lane.

Re: new-group-action = 4 not working??
#7961
Author: Matthew England
Date: Tue, 10 Sep 1996 00:00
28 lines
1314 bytes
Bill Wohler <wohler@newt.com> writes:

>mengland@npi.com (Matthew England) writes:
>>> 
>>>   Take NEW out of your sequence--it's redundant.

>>Does it HAVE to be taken out?  Will things still work as advertised if
>>it's in there?

>  If someone wants to iron
>  out the questions that Matthew raised, I'll be delighted to make the
>  FAQ more clear.

I can easily look into it if I can figure how to get 
new-group-action = 4 to work.

Do I need to do some combination like 

     new-group-action = 24

to get things to work?  I tried this without any success.  (btw, in my
~/.nn/init, keep-unsubscribed is not changed and is therefore,
according to the man page, is set to "true".)

Matt

Re: new-group-action = 4 not working??
#7963
Author: Matthew England
Date: Tue, 10 Sep 1996 00:00
45 lines
2360 bytes
Bill Wohler <wohler@newt.com> writes:

>mengland@npi.com (Matthew England) writes:
>> Do I need to do some combination like 
>>     new-group-action = 24

>  That is not the correct syntax.  Read the man page again (long yes,
>  but I learn something new every time I do).

fyi, as mentioned in previous posts, I've already tried the
syntactically correct options:

    set new-group-action 2
    set new-group-action 4

And I've done an in-depth search nn(1).  I've been an nn user for a
while, but this is the first time I've been the sysadmin, too.

>>to get things to work?  I tried this without any success.  (btw, in my
>>~/.nn/init, keep-unsubscribed is not changed and is therefore,
>>according to the man page, is set to "true".)

>  One thing you need to be aware of is that your system administrator
>  may have changed the compiled-in default (whew! I've forgotten the
>  name of this file.  Was it /usr/local/lib/nn/init?).

fyi, I am the sysadmin.  I just built nn.6.5.1 this weekend, and I have
root access to every machine on my (very) heterogeous (sp?) network, so
I can do whatever needs to be done.  There is no system init file (but
if it were there, I compiled $LIB = /usr/local/lib/nn, where /usr/local
is an nfs-mounted file system so that other like systems can mount and
use it), at least not one in $LIB.

However, I'll try explicity setting "keep-unsubscribed" in my
~/.nn/init when I get a chance.

Matt
--
Matthew England
Systems Engineer                                 | voice: (630) 325-4151
National Peripherals Inc. (NPI), an MTI Company  |   fax: (630) 325-4230
1111 Pasquinelli Drive, Westmont, IL, 60559, USA |      mengland@npi.com

Re: new-group-action = 4 not working??
#7965
Author: Bill Wohler
Date: Tue, 10 Sep 1996 00:00
27 lines
1521 bytes
mengland@npi.com (Matthew England) writes:
>Quoted from the faq:
>> ------------------------------
>> 
>> Subject: 14.01 Setting new-group-action to "ask before adding" doesn't work.
>> From: Peter Wemm <peter@dialix.oz.au>
>> Date: Fri, 1 Oct 93 00:00:00 -0800
>> 
>>   Take NEW out of your sequence--it's redundant.

>Does it HAVE to be taken out?  Will things still work as advertised if
>it's in there?

  I don't have the time to play with this.  I am always extremely happy
  to incorporate your feedback into the FAQ.  If someone wants to iron
  out the questions that Matthew raised, I'll be delighted to make the
  FAQ more clear.

  Remember, the FAQ is your document.  I'm just a picky editor.
-- 

Bill Wohler <wohler@newt.com>   ph: +1-415-854-1857  fax: +1-415-854-3195
Say it with MIME.  Maintainer of comp.mail.mh and news.software.nn FAQs.
If you're passed on the right, you're in the wrong lane.

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