[leafnode-list] Re: spool full due to posted binarys

Brian D groups at planet3.freeuk.co.uk
Fri Jul 21 19:40:22 CEST 2006


On 21 Jul,  
     Matthias Andree <matthias.andree at gmx.de> wrote:

> Brian D <groups at planet3.freeuk.co.uk> writes:
> 
> > On 21 Jul,  
> >      Matthias Andree <matthias.andree at gmx.de> wrote:
> > 
> > > That would probably just be another "texpire -r" run and perhaps
> > > "fetchmail -f".
> 
> > I used texpire -r and since then leafnode has worked well.
> 
> OK.
> 
> > Would there be any problem in running  
> > 
> > "find /var/spool/news/* -size +31000c -exec rm '{}' ';'"?
> 
> Yes, that's problematic: you would also hit leafnode's administrative files
> such as the group list and active files as well as the .overview (call them
> header cache if you like, or NOV or XOVER) files.
> 
> Instead, you can use (omit the * in /var/spool/news - the find command
> traverses the directory tree by itself, and shell expansion of the * could
> bypass the pruning of directories with dot in their names):
> 
>    find /var/spool/news/ -name '*.*' -prune \
>       -o '(' -type f -size +31000c -exec rm '{}' ';' ')'
> 
> The trick here is that, since leafnode maps SOME.GROUP to
> /var/spool/news/SOME/GROUP, group directories never have dots in their
> names, but all administrative directories and files do. Hence preventing
> traversal of directories with a dot in their name prevents damage to the
> administrative files.

Yes, point taken. I'd expected the fetchnews -r to resurrect the .overview
files, but I'd overlooked the others.

I'll file that away in case of future problems, but I don't expect any as
I'm now filtering out large messages before they hit the spool.


-- 
  Brian Duffell  VirtualRiscPCSA  | RISC OS 4.39 Adjust
  Darlington ASC                  | <www.dare-asc.co.uk> 
  Darlington Dolphin Masters ASC  | <www.darlingtonmasters.org.uk>



More information about the leafnode-list mailing list