[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

On 21 Jul,  
     Matthias Andree <matthias.andree@xxxxxx> wrote:

> Brian D <groups@xxxxxxxxxxxxxxxxxxxx> writes:
> > On 21 Jul,  
> >      Matthias Andree <matthias.andree@xxxxxx> 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>
leafnode-list mailing list