🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #164783

Re: [Xnews] Simple Scoring Question...

#164783
From: echo
Date: Fri, 01 Apr 2005 23:57
60 lines
2794 bytes
Saint Alice <saint_alice@wonderbread.com> 
news:Xns962930D8E4CD7saintaliceshawwaveca@24.71.223.159:

> Thanks for the input; I'll try it.
> 
> Now, a confession: my knowledge of advanced scoring ends at Xnews's 
> scoring.txt.
> 
> Could you point me to a thorough Score file primer? It'd be nice to have 
> a clue.
> 
> 
> Thanks.
> 
> 
> 
> echo wrote:
> 
>> 
>> This would work, but might be limited as it would also allow a From:
>> entry of  "R@tman" or "@lphaday" to pass through the filter. You might
>> want to try something more limiting like:
>> 
>> Score:: -9999
>>   ~From: \w+@.*\.\D\D+
>> 
>> Not sure if this exact, so all score-pros should feel free to crrect. 
>> Nonetheless, i think it captures the essence of filtering for: 
>> 
>> any string of 2 or more characters or digits (\w+)
>> followed by "@" plus any string (@.*)
>> followed by a period and 2 or more non-digit characters (\.\D\D+)
>> 
>> Hope it helps - haven't tried it!
>> 
>> echo
>> 
> 

Saint Aice:

The links below are but a few that can be helpful. As already mentioned, 
the PCRE.html file included with xnews is helpful. You will find it in the 
main folder. If not, just download a recent version of xnews and extract it 
from the comprressed file. The links below are similar to the info in that 
file, but contain a lot more info than I need. Still, I refer to them 
often.

Oh... I didn't say it in my previous message, but assume you understood 
that the filter above is designed to kill any "From:" entry that does NOT 
meet the stated conditions, which are intended to reflect the standard for 
an e-mail address. 

Enjoy!

http://www.perldoc.com/perl5.8.0/pod/perlre.html#Regular-Expressions
http://virtual.park.uga.edu/humcomp/perl/regex2a.html
http://www.newlisp.org/downloads/Tools/pcre.html

echo
Technical Details
Message-ID: <Xns962BC0F82C88echo123@38.144.126.103>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!newsh.newsreader.com!romeo.newsreader.com!not-for-mail
References: <Xns962334FADF6A0saintaliceshawwaveca@24.71.223.159> <MrQ96234B0083DD9itsmeitsQ@QsFQDN.dyndns.org> <Xns96284E178CEB2echo123@38.144.126.105> <Xns962930D8E4CD7saintaliceshawwaveca@24.71.223.159>

Show Full Headers
Complete Article Headers
Message-ID: <Xns962BC0F82C88echo123@38.144.126.103>
Subject: Re: [Xnews] Simple Scoring Question...
Date: Fri, 01 Apr 2005 23:57:53 +0000
From: echo <echo@echo.echo>
References: <Xns962334FADF6A0saintaliceshawwaveca@24.71.223.159> <MrQ96234B0083DD9itsmeitsQ@QsFQDN.dyndns.org> <Xns96284E178CEB2echo123@38.144.126.105> <Xns962930D8E4CD7saintaliceshawwaveca@24.71.223.159>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!newsh.newsreader.com!romeo.newsreader.com!not-for-mail
Newsgroups: news.software.readers
User-Agent: Xnews/??.01.30
X-Trace: romeo.newsreader.com V.xRQilnI4JfZ@k9-CbmKEDRSronfL-jAIZAEYlnWrhkBMdT
Lines: 60