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

[leafnode-list] Re: ANNOUNCE: leafnode-2.0b5_ma6



Matthias Andree wrote:

>   NOTE that applyfilter currently only deals with one newsgroup per invocation!

No problem, thanks for fixing applyfilter! People can use the script
below to apply their filters on any newsgroups they like.

Regards...
		Michael

#! /bin/sh 
 
Usage () 
{ 
  echo "Usage:  applyfilters <newsrc-file" 
  echo "   or:  ls /var/spool/news/interesting.groups | applyfilters" 
  echo 
  echo "applyfilters will run Leafnode's applyfilter for every group" 
  echo "piped into its stdin." 
  exit 1 
} 
 
[ $# -eq 0 ] || Usage 
 
PATH=/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin:$PATH 
 
IFS=: 
while read group x ; do 
  case "$group" in *!*) continue;; esac 
  echo "Applying filters for \"$group\":" 
  applyfilter "$group" 
done  


-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list