🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #231030

Re: [slrn] scoring using wildcards

#231030
From: sfb
Date: Thu, 05 Mar 2009 20:09
45 lines
2928 bytes
On 2009-03-05, Adam Funk <a24061@ducksburg.com> wrote:
> 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.
>
>
Thanks for that Adam Funk. I'm new to slrn and fairly new to Linux. I'll
spend some time looking at the s-lang references to see what I can
learn.

sfb

-- 
Nil Illegitimus Carborundum
Technical Details
Message-ID: <slrngr0cbv.92f.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!proxad.net!feeder2-2.proxad.net!nx01.iad.newshosting.com!nx02.iad.newshosting.com!newshosting.com!216.196.98.140.MISMATCH!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.posted.plusnet!news.posted.plusnet.POSTED!not-for-mail
References: <slrngr03l4.8le.sfb@dajand.me.uk> <aom586-v2j.ln1@news.ducksburg.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrngr0cbv.92f.sfb@dajand.me.uk>
Subject: Re: [slrn] scoring using wildcards
Date: Thu, 05 Mar 2009 14:09:35 -0600
From: sfb <sfb@sfb.invalid>
References: <slrngr03l4.8le.sfb@dajand.me.uk> <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!proxad.net!feeder2-2.proxad.net!nx01.iad.newshosting.com!nx02.iad.newshosting.com!newshosting.com!216.196.98.140.MISMATCH!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.posted.plusnet!news.posted.plusnet.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 05 Mar 2009 14:09:35 -0600
Newsgroups: news.software.readers
User-Agent: slrn/pre0.9.9-111 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 45
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-t8QOeyxtGKYnJ0JXS2FZxD6Z+Z0eCGoA4uGegcUw3k/Vt8pbQ5CGmsQ7HX1KTjWlNEnBf54FlY1iyA2!AZ6LDq1Z2JhwnpJfXCH2sI5kKY4+oivF9zZR1WcXcJNaqInPxL2fvCiSp6BqBvsO2w==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.39
X-Original-Bytes: 2680