🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Kristopher Sun, 09 Mar 1997 00:00
purging junk directory
#15675
Author: Kristopher
Date: Sun, 09 Mar 1997 00:00
9 lines
740 bytes
I have successfully setup a INN news site, getting feeds from ISP.
My question is how to purge the /usr/spool/news/junk directory? it is
growing bigger and bigger for 2 weeks now.
Thanks.

Kris

Re: purging junk directory
#15712
Author: Rod Eldridge
Date: Mon, 10 Mar 1997 00:00
23 lines
1337 bytes
In <332243AA.505E@idris.com.au>, Kristopher (krisl@idris.com.au) wrote:
> I have successfully setup a INN news site, getting feeds from ISP.
> My question is how to purge the /usr/spool/news/junk directory? it is
> growing bigger and bigger for 2 weeks now.
> Thanks.

If you don't want junk at all, change your config.data file:

##  File articles in unknown newsgroups into junk?  Pick DO or DONT.
#### =()<WANT_TRASH             @<WANT_TRASH>@>()=
WANT_TRASH              DONT

and recomplile.

If you want junk, then you need to put junk in your expire.ctl file
just like any other newsgroup to control expiry.

--
Rod Eldridge            mailto:rod@iastate.edu
Iowa State University   http://www.public.iastate.edu/~rod

Re: purging junk directory
#15750
Author: Scott Sanbeg
Date: Tue, 11 Mar 1997 00:00
24 lines
1338 bytes
Kristopher wrote:
> 
> I have successfully setup a INN news site, getting feeds from ISP.
> My question is how to purge the /usr/spool/news/junk directory? it is
> growing bigger and bigger for 2 weeks now.

Hello Kris,

There is a compile option to save unwanted groups in junk,
or not to.  Apparently, though, you compiled it in.  So,
to your expire.ctl file, add this:
junk:A:0:0:0

'man expire' will explain the parameters.
Scott
-- 
Scott Sanbeg                       INTERNET: ssanbeg@interglobe.com
InterGlobe Networks, Inc.          OFFICE: 206.623.2222
1520 Fourth Avenue, Suite 200      FAX: 206.623.0885
Seattle, WA  98101                 INFO: info@interglobe.com
This is my opinion and mine alone. URL: http://www.interglobe.com

Re: purging junk directory
#15837
Author: Andrew Gierth
Date: Thu, 13 Mar 1997 00:00
17 lines
1311 bytes
>>>>> "Dean" == Dean Carpenter <dcarpenter@kraft.com> writes:

 Dean> We have junk expiring in 5 days here.  I wrote a script that
 Dean> parses all the articles in junk and finally presents you with a
 Dean> script of ctlinnd newgroup commands to add all the unknown
 Dean> newsgroups.  You delete the lines in there for groups you don't
 Dean> want to add, then run it.

Do you handle moderated groups correctly? We've seen cases recently on
groups like alt.hackers, alt.hackers.discuss and alt.dev.null of people
complaining that the group was listed as unmoderated.

-- 
Andrew.

Re: purging junk directory
#15842
Author: Dean Carpenter
Date: Thu, 13 Mar 1997 00:00
34 lines
1776 bytes
In article <3325E8F6.24D9@interglobe.com>, ssanbeg@interglobe.com says...
--> Kristopher wrote:
--> > 
--> > I have successfully setup a INN news site, getting feeds from ISP.
--> > My question is how to purge the /usr/spool/news/junk directory? it is
--> > growing bigger and bigger for 2 weeks now.
--> 
--> There is a compile option to save unwanted groups in junk,
--> or not to.  Apparently, though, you compiled it in.  So,
--> to your expire.ctl file, add this:
--> junk:A:0:0:0
--> 
--> 'man expire' will explain the parameters.

We have junk expiring in 5 days here.  I wrote a script that parses all
the articles in junk and finally presents you with a script of ctlinnd
newgroup commands to add all the unknown newsgroups.  You delete the
lines in there for groups you don't want to add, then run it.

Server is paused, new groups added, server go'd.  Voila.  Since there
aren't *that* many newgroups being added too often, running this once
a week or less is usually sufficient, unless you want to catch all the
flakey alt.* new groups :)

It's not very big - if anyone is interested, I'll post it here.

-- 
Dean Carpenter

dcarpenter@kraft.com
deano@areyes.com

Re: purging junk directory
#15844
Author: Dean Carpenter
Date: Thu, 13 Mar 1997 00:00
34 lines
2027 bytes
In article <87d8t3ssie.fsf@erlenstar.demon.co.uk>, 
andrew@erlenstar.demon.co.uk says...
--> >>>>> "Dean" == Dean Carpenter <dcarpenter@kraft.com> writes:
--> 
-->  Dean> We have junk expiring in 5 days here.  I wrote a script that
-->  Dean> parses all the articles in junk and finally presents you with a
-->  Dean> script of ctlinnd newgroup commands to add all the unknown
-->  Dean> newsgroups.  You delete the lines in there for groups you don't
-->  Dean> want to add, then run it.
--> 
--> Do you handle moderated groups correctly? We've seen cases recently on
--> groups like alt.hackers, alt.hackers.discuss and alt.dev.null of people
--> complaining that the group was listed as unmoderated.

No it doesn't.  We have faily complete newsgroups and active files here,
so the new groups aren't that many, and pretty easy to check.

When you run the script it drops you into vi in the built script for
adding the new groups.  Just make any changes you need, and go.

The script builds a list of all unique newsgroups culled from the
Newsgroups: headers in all the junk articles, then compares that to
the current active file to generate a list of newsgroups you don't
have.  Hmmm.  Based on the available information, how would you know 
if a group should be moderated or not ?

-- 
Dean Carpenter

dcarpenter@kraft.com
deano@areyes.com

Re: purging junk directory
#15949
Author: Dean Carpenter
Date: Mon, 17 Mar 1997 00:00
85 lines
3116 bytes
In article <MPG.d91def92cfc2788989686@news.kraft.com>, 
dcarpenter@kraft.com says...
--> We have junk expiring in 5 days here.  I wrote a script that parses all
--> the articles in junk and finally presents you with a script of ctlinnd
--> newgroup commands to add all the unknown newsgroups.  You delete the
--> lines in there for groups you don't want to add, then run it.
--> 
--> Server is paused, new groups added, server go'd.  Voila.  Since there
--> aren't *that* many newgroups being added too often, running this once
--> a week or less is usually sufficient, unless you want to catch all the
--> flakey alt.* new groups :)
--> 
--> It's not very big - if anyone is interested, I'll post it here.

OK already.  Here it is.  Anyone who's emailed me for a 
copy, I'll still email your own to you as well.

===========================================
#! /bin/sh
#
#       This script scans through all the articles in 
/usr/spool/news/junk
#       culling out the newsgroup names.  These groups 
are then written to
#       /tmp/grpadd as a script to add them with addgroup
#
#       Handy to bulk-add missing groups as needed or 
wanted.
#

. /usr/lib/news/innshellvars

rm -f /tmp/grpadd
rm -f /tmp/getjunk.[1-9]

echo "#!/bin/sh" > /tmp/grpadd
echo "#" >> /tmp/grpadd
echo "# Remove any unwanted groups, edit as desired, then 
save." >> /tmp/grpadd
echo "# Then, run /tmp/grpadd as news to create the 
groups listed here." >> /tmp/grpadd
echo "#" >> /tmp/grpadd
echo "$NEWSBIN/ctlinnd pause Adding new groups" >> 
/tmp/grpadd
echo >> /tmp/grpadd

# Get list of newsgroups from junk articles
#
echo getting list of newsgroups - getjunk.1
cd $SPOOL/junk
( ls -1 | \
xargs -n1 fgrep Newsgroups: | \
awk ' FS=":" { print $2 } ' | \
tr ',\040' '\012\012'  ) | \
sort | uniq > /tmp/getjunk.1

# Get list of newsgroups already in the active file
#
echo comparing to $ACTIVE file
cat $ACTIVE | cut -f 1 -d " " | \
cat /tmp/getjunk.1 - | sort | uniq -d | \
cat /tmp/getjunk.1 - | sort | uniq -u | \
xargs -n1 -i echo "$NEWSBIN/ctlinnd newgroup {}" >> 
/tmp/grpadd
echo >> /tmp/grpadd
echo "$NEWSBIN/ctlinnd go Adding new groups" >> 
/tmp/grpadd
echo rm /tmp/grpadd >> /tmp/grpadd
chmod +x /tmp/grpadd
vi /tmp/grpadd
echo
echo OK, now run /tmp/grpadd as news to create the 
newsgroups
echo
chown news.news /tmp/grpadd
===========================================

-- 
Dean Carpenter

dcarpenter@kraft.com
deano@areyes.com

Re: purging junk directory
#16134
Author: Danhiel Baker
Date: Fri, 21 Mar 1997 00:00
27 lines
1934 bytes
Dean Carpenter wrote:
> 
> The script builds a list of all unique newsgroups culled from the
> Newsgroups: headers in all the junk articles, then compares that to
> the current active file to generate a list of newsgroups you don't
> have.  Hmmm.  Based on the available information, how would you know
> if a group should be moderated or not ?

Crossposts make it hairy, but on none-crossposted articles, check for an
Approved-by: header.  If it has it, you can bet that group is moderated.
If not, it's still a crap shoot, but at least you tried.  For
crossposted articles with an "Approved" header, you could make the
program do a little deduction (is only one group listed not in the
active file, and if so, are any of the other groups moderated).  You
could also build a table of info about which might be moderated based on
the above info and by looking at other crossposts to the same group in
the junk directory.  At least then the Admin will have something to go
on, and could examine the articles themself to make the finaly decision.
Again, at least you will have tried.

--
Danhiel Baker    danhiel@moreinfo.com
Chief SysAdmin,
SuperNews (formerly Net-Link Solutions) http://www.supernews.com

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