🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #224662

Re: [Pan] scoring help with a troll

#224662
From: Peter J Ross
Date: Wed, 13 Aug 2008 14:19
53 lines
2736 bytes
In news.software.readers on Sun, 10 Aug 2008 15:28:56 +0000 (UTC),
Kurt Steinhauser <NoMail@nowhere.invalid> wrote:

> I know Pan the scoring in Pan (new version)is pretty limited. I'm getting 
> tired of having to kill a troll all the time as the troll changes his/her/
> its' from address. 
>
> Since Pan generally follows slrn's pcre syntax, would the following use 
> of wild cards work to kill the troll's postings?

slrn doesn't use PCRE, but Pan does.

> [name of Newsfroup]
> Score:: =-9999
> From: ^"trollname" <*.*\.com>$

"*" means "0 or more instances of the preceding character".

"." means "any character".

What I think you're trying to do here is

	From: ^"trollname" <.*\.com>$

but this is overkill if "trollname" remains constant and unique.

	From: trollname

ought to work as well.

> This particular troll is mostly used out of sequence lowercase letters in 
> his/her/its address. 

You can match a string of lowercase letters with

	[a-z]+

> I seem to recall that it is possible to use wildcards, but I can't find 
> the archived reference that is on a CD somewhere around here.

Start with "man 3 pcre".

Also, you'll find HTML documentation in the PCRE tarball:
<ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/>

or here: <http://www.autoitscript.com/autoit3/pcrepattern.html>.


-- 
PJR :-)

<http://pjr.lasnobberia.net/usenet/>
<http://slrn-doc.sourceforge.net/>
Technical Details
Message-ID: <slrnga5rb3.kmk.pjr@pjr.motzarella.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!news.motzarella.org!motzarella.org!not-for-mail
References: <pan.2008.08.10.15.29.04@SteinhausHLD>

Show Full Headers
Complete Article Headers
Message-ID: <slrnga5rb3.kmk.pjr@pjr.motzarella.org>
Subject: Re: [Pan] scoring help with a troll
Date: Wed, 13 Aug 2008 15:19:15 +0100
From: Peter J Ross <pjr@example.invalid>
References: <pan.2008.08.10.15.29.04@SteinhausHLD>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 53
Reply-To: Peter J Ross <peadar.ruadh@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: reader.motzarella.org
 U2FsdGVkX19KcNG/SdwpG8XJPi4QoNso3/q900Pr2CZ1CpYJNFjfhkH9bgkc4wI4IsKGdiAyTRXY/AvYeRHvtfqONBvDjxnUSJo3Aec0YcjuxgxebM2aOhwRTD2OrMuuZEE1MAkFF3Y=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Wed, 13 Aug 2008 14:23:12 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1/SkxBwxDhXSYopUqvt7OrA
Cancel-Lock: sha1:GfCm4n8JzJZvUIF++OjmueqE/PU=
User-Agent: slrn/pre0.9.9-130/mm (Linux)