🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #75676

Re: [slrn] filter on body

#75676
From: Faux_Pseudo
Date: Sat, 07 Apr 2001 08:49
92 lines
4302 bytes
well than i am glad i helped and not flamed
and now that you explained your reason i can see
it makeing a little more sense if there is no
tail tell signs in the headers to tell you who the
followup is by.

i would not however use this as a seperat cron script
you could end up with lots of ugly errors

i would run it at the end of the cron script you have
set to run slrn in the frist place
0 * * * * slrnpull.sh ; cleanbodies.sh

here is an example of my slrnpull.sh
that i wrote so that i would not have multipul
instances of slrnpull working at the same time

#!/bin/bash 
umask 022

export NNTPSERVER=my.news.server.com

if [ ! -f /home/faux/.slrnpull.lock ] ; then
touch /home/faux/.slrnpull.lock

# Before getting new articles, perform expiration.
/usr/bin/slrnpull -d /mnt/win_f/slrnpull/ --expire
/usr/bin/slrnpull -d /mnt/win_f/slrnpull/ 
rm -f /home/faux/.slrnpull.lock
fi

and in /etc/rc.d/rc.local i have
rm -f /home/faux/.slrnpull.lock

--(Once apon a time, in news.software.readers,)--
		--(steve said it like only they can.)--
> Faux_Pseudo@24.177.56.253 (Faux_Pseudo):
> >| # I am taking the <g> to be a sign that this post is
> >| # a joke so if i am wrong just remember that
> 
> Nope no joke, I was just attempting to show how much of a
> `happy-go-lucky' kinda guy I am. ;)
>   
> >|  first use slrnpull
> >|  creat a list of words to killfile
> >|  then use this script
> 
> I use Leafnode. I assume this will work with it - I'll just change the
> path.
> 
> >|  for f in $(grep -ri -f $HOME/killfile.txt /var/spool/slrnpull/news/ | \
> >|  awk -F : '{print$1}' | grep -v ^Binary) ; do rm -f $f ; done
> >|  
> >|  i figure that it shouldnt take more than an hour or two
> >|  to kill file most big binary groups on a fast system.
> 
> It's not for binary groups, I want to filter out a regularly posted spam
> article that the author uses in a followup. The only way I can do it, is
> to search on the body as some of his other posts are interesting to
> read.
> 
> So I assume that I make this a bash script then call on cron to run it
> after the news crontab is run?
> 
> Thanks, I'll try the foregoing example and adjust it to my needs. I'm a
> relative newbie to Linux [2 years] and grep, but do enjoy learning. =)
>   
> >|  --(Once apon a time, in news.software.readers,)--
> >|  		--(steve said it like only they can.)--
> >| > Hello,
> >| > 
> >| > I'm having some difficulty in figuring out how to go about making a
> >| > score file to kill certain posts based on contents in the body.
> >| > 
> >| > Any appropriate examples will be gratefully accepted. <g>
> 
> 
> -- 
> Steve - Toronto ICQ 35454764
> Powered by GNU/Linux
>   2:59pm  up 2 days, 12:55,  9 users,  load average: 0.00, 0.00, 0.00


-- 
--(UIN=66618055)--
--(tty1@faux.local_04:45_/home/faux)-- cat .sig
GUI's are for slackers.  ibpconf.sh 6.1 on freshmeat.net  
The easiest way to customize the command line.  By Faux_Pseudo

It's a damn poor mind that can only think of one way to spell a word.
        - Andrew Jackson
Technical Details
Message-ID: <LwAz6.122719$o7.4799989@news1.rdc1.sdca.home.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sdca.home.com.POSTED!not-for-mail
References: <slrn9cp18q.vs.bedwetter@hayseeds.dynip.com> <Ysbz6.118832$o7.4655854@news1.rdc1.sdca.home.com> <slrn9cs529.vs.bedwetter@hayseeds.dynip.com>

Show Full Headers
Complete Article Headers
Message-ID: <LwAz6.122719$o7.4799989@news1.rdc1.sdca.home.com>
Subject: Re: [slrn] filter on body
Date: Sat, 07 Apr 2001 08:49:47 GMT
From: Faux_Pseudo@24.177.56.253 (Faux_Pseudo)
References: <slrn9cp18q.vs.bedwetter@hayseeds.dynip.com> <Ysbz6.118832$o7.4655854@news1.rdc1.sdca.home.com> <slrn9cs529.vs.bedwetter@hayseeds.dynip.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sdca.home.com.POSTED!not-for-mail
Newsgroups: news.software.readers
Reply-To: Faux_Pseudo@yahoo.com
User-Agent: slrn/0.9.7.0 (Linux)
Lines: 91
NNTP-Posting-Host: 24.177.56.253
X-Complaints-To: abuse@home.net
X-Trace: news1.rdc1.sdca.home.com 986633387 24.177.56.253 (Sat, 07 Apr 2001 01:49:47 PDT)
NNTP-Posting-Date: Sat, 07 Apr 2001 01:49:47 PDT
Organization: Excite@Home - The Leader in Broadband http://home.com/faster