🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #231022

Re: [slrn] scoring using wildcards

#231022
From: Adam Funk
Date: Thu, 05 Mar 2009 19:45
39 lines
2323 bytes
On 2009-03-05, sfb wrote:

> Hi everybody. I'm trying to kill a poster who uses numbers in the 'from'
> part of the header. The numbers change and I was wondering if there was
> some way of using wildcards in the score file 'from' attribute? I've
> looked at the documentation and it seems wildcards are only useable in
> the [newsgroup] indicator. I've tried the usuals, * and ?, but they don't
> seem to work. Is there a way of using wildcards in the way I would like.

The [newsgroups] bit at the beginning of each stanza uses "*" in the
shell-glob way (I've never tried "?" there).

The patterns to match use s-lang regular expressions (which are
similar enough to Perl-compatible regexes to be helpful most of the
time while still causing occasional confusion).  You might want
something like this:


[*]
Score: -99
       From: \d+@example\.com


That rule will match anything *in* the From header, not just the
complete e-mail address; for example, it would match

   From: A Troll <347@example.com>
   From: 7777@example.com  (J Troll)
       
but also

   From: Nice Guy <bob4@example.com>

so you might want to play around with it.


-- 
Do you know what they do to book thieves up at Santa Rita?
         http://www.shigabooks.com/indeces/bookhunter.html
Technical Details
Message-ID: <aom586-v2j.ln1@news.ducksburg.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.20140922.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrngr03l4.8le.sfb@dajand.me.uk>

Show Full Headers
Complete Article Headers
Message-ID: <aom586-v2j.ln1@news.ducksburg.com>
Subject: Re: [slrn] scoring using wildcards
Date: Thu, 5 Mar 2009 19:45:46 +0000
From: Adam Funk <a24061@ducksburg.com>
References: <slrngr03l4.8le.sfb@dajand.me.uk>
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.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: $CABAL
Lines: 39
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: individual.net GgmlnSUQ4UDfpzGZ204u+A9ZTgNZ5czlXje4vTzRMlOHtoYeYu
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:JscTrF32Fm7Moz1pZNXy+4tNVXo=
 sha1:n2oU+2eGSKW2wNKvaR0M16xbsMM=
User-Agent: slrn/pre1.0.0-2 (Linux)
X-Original-Bytes: 2088