🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Charlie Bibas Wed, 15 Oct 1997 00:00
How to expire fast the junk group?
#22412
Author: Charlie Bibas
Date: Wed, 15 Oct 1997 00:00
12 lines
657 bytes
Hi all,

I'm using inn1.5/Linux.  My disk fills out quickly.  How can I get the
junk group to expire or limit the disk space it consumes?

Thanks in advance,

Charles


Re: How to expire fast the junk group?
#22443
Author: Dougal Campbell
Date: Thu, 16 Oct 1997 00:00
45 lines
2254 bytes
Charlie Bibas <mylog@dorsai.org> wrote:
> Hi all,

> I'm using inn1.5/Linux.  My disk fills out quickly.  How can I get the
> junk group to expire or limit the disk space it consumes?

Recompile INN with WANT_TRASH = DONT. After all, how often do you
actually look at or process anything in the junk directory? 

If you would rather not do that, you might try expiring more than once
a day. Use soemthing like this in your crontab:

  ## Run an expire at noon, but don't rotate logs or renumber
  00 12 * * * /usr/lib/news/bin/news.daily delayrm norotate norenumber

And something like this in your expre.ctl:

  junk:A:0:0.5:0.5

You might want a similar entry for control (and control.cancel if
you've broken it down).

Also, if you're running NOV, you might want to do something like:

  ln -fs /dev/null /var/spool/news/over.view/control/.overview

You could do the same for control/cancel and junk, and maybe some
groups like alt.binaries.*. This will save you some wasted space on
your overview spool.

Does anyone know if this last trick causes any problems or performance
hits? I did it a while back on my server, and haven't encountered any
problems. 

-- 
Dougal Campbell, Systems Manager, ADViCOM        dougal@advicom.net
http://www.advicom.net/                 http://advicom.net/~dougal/
           See my homepage for anti-spam information!
QUOTE OF THE MOMENT:
"The human brain is like an enormous fish -- it is flat and slimy and
has gills through which it can see."
		-- Monty Python

Re: How to expire fast the junk group?
#22491
Author: Marc Slemko
Date: Sun, 19 Oct 1997 00:00
30 lines
1789 bytes
In <62dbvg$sef$1@nntp.newmedia.no> vidarh@ncg.net (Vidar Hokstad) writes:

>In article <6257j9$s9l$1@polo.advicom.net>,
>	Dougal Campbell <dougal@vespucci.advicom.net> writes:
>>   ln -fs /dev/null /var/spool/news/over.view/control/.overview
>> 
>> You could do the same for control/cancel and junk, and maybe some
>> groups like alt.binaries.*. This will save you some wasted space on
>> your overview spool.
>> 
>> Does anyone know if this last trick causes any problems or performance
>> hits? I did it a while back on my server, and haven't encountered any
>> problems. 

It causes problems on systems that don't allow locking of /dev/null, 
such as FreeBSD.  If it works it works, although it is extra effort
compared to discarding them.

>I'd say this look cleaner to me:

>overview!:*,!junk,!control*:Tc,WO:/usr/lib/news/bin/overchan

Yes, if you ignore the fact that !control* won't stop control messages
from going to overchan.  You need to either hack overchan to skip
messages in control.cancel or you need to add a flag to innd that
lets you specify if a feed in the newsfeeds file should get control
messages or not.

Re: How to expire fast the junk group?
#22499
Author: Jeremy
Date: Sun, 19 Oct 1997 00:00
29 lines
1650 bytes
Vidar Hokstad <vidarh@ncg.net> wrote:
> In article <6257j9$s9l$1@polo.advicom.net>,
> 	Dougal Campbell <dougal@vespucci.advicom.net> writes:
>
>>   ln -fs /dev/null /var/spool/news/over.view/control/.overview
>> 
>> You could do the same for control/cancel and junk, and maybe some
>> groups like alt.binaries.*. This will save you some wasted space on
>> your overview spool.
>> 
>> Does anyone know if this last trick causes any problems or performance
>> hits? I did it a while back on my server, and haven't encountered any
>> problems. 
> 
> I'd say this look cleaner to me:
> 
> overview!:*,!junk,!control*:Tc,WO:/usr/lib/news/bin/overchan

It doesn't work though (without a patch), because control messages
get fed according to the group to which they are posted.  The patch
to fix this has been posted here a couple of times and could probably
be found at Dejanews...

-- 
Jeremy  |  jeremy@exit109.com
"I think I speak for everyone here when I say, 'Huh?'"  --Buffy

Re: How to expire fast the junk group?
#22516
Author: Frank Ederveen
Date: Mon, 20 Oct 1997 00:00
20 lines
1284 bytes
> >
> > overview!:*,!junk,!control*:Tc,WO:/usr/lib/news/bin/overchan
> 
> It doesn't work though (without a patch), because control messages
> get fed according to the group to which they are posted.  The patch
> to fix this has been posted here a couple of times and could probably
> be found at Dejanews...

How about something like this:
overview!/cyberspam:*,!junk:Tc,WO:/usr/lib/news/bin/overchan

It doesn't get rid of _all_ control articles but a sizeable chunk of
them. We found this to be extremely helpfull.

Kind regards,

Frank Ederveen

Re: How to expire fast the junk group?
#22517
Author: Jeremy
Date: Mon, 20 Oct 1997 00:00
16 lines
1113 bytes
Frank Ederveen  <franke@NL.net> wrote:

> How about something like this:
> overview!/cyberspam:*,!junk:Tc,WO:/usr/lib/news/bin/overchan
> 
> It doesn't get rid of _all_ control articles but a sizeable chunk of
> them. We found this to be extremely helpfull.

Ah yes, I'd forgotten about that.  It works nicely for me too...

-- 
Jeremy  |  jeremy@exit109.com
"I think I speak for everyone here when I say, 'Huh?'"  --Buffy

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