🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
16 messages
16 total messages Started by Jason Wed, 19 Dec 2007 18:33
slrn and wildcards in the scorefile
#212982
Author: Jason
Date: Wed, 19 Dec 2007 18:33
14 lines
1545 bytes
There's a troll in group I follow that consistently uses the same
address but changes a number in their account name. For example foo666
becomes foo667 the next time they troll.

Is it possible to use wildcards in the From: in slrns scorefile?
Something along the lines of From:foo*@domain.name. I searched the FAQ
and the slrn website and saw all kinds of information on wildcards but
nothing that I could find about the from field.

I don't want to kill all posts from that domain as they seem to be the
only looser coming from there.

Jason
Re: slrn and wildcards in the scorefile
#212983
Author: Peter J Ross
Date: Wed, 19 Dec 2007 18:44
17 lines
1937 bytes
In news.software.readers on Wed, 19 Dec 2007 14:33:02 -0400, Jason
<Jason@invalid.address.lan> wrote:

> There's a troll in group I follow that consistently uses the same
> address but changes a number in their account name. For example foo666
> becomes foo667 the next time they troll.
>
> Is it possible to use wildcards in the From: in slrns scorefile?
> Something along the lines of From:foo*@domain.name. I searched the FAQ
> and the slrn website and saw all kinds of information on wildcards but
> nothing that I could find about the from field.

	From: foo[0-9]+@domain\.name


-- 
PJR :-)
Re: slrn and wildcards in the scorefile
#212987
Author: Blinky the Shark
Date: Wed, 19 Dec 2007 18:50
34 lines
2406 bytes
Jason wrote:

> There's a troll in group I follow that consistently uses the same
> address but changes a number in their account name. For example foo666
> becomes foo667 the next time they troll.
> 
> Is it possible to use wildcards in the From: in slrns scorefile?
> Something along the lines of From:foo*@domain.name. I searched the FAQ
> and the slrn website and saw all kinds of information on wildcards but
> nothing that I could find about the from field.
> 
> I don't want to kill all posts from that domain as they seem to be the
> only looser coming from there.

There are too many flavors of regex!  :)

Also, as for me, my score file is shared by more than one client, so I
have to keep things simple.

The answer to your question is yes, but I'd just do:

Score: =-9999
From: foo
From: example.com

The single colon in the first line means boolean AND, so the rule will
only be applied if both criteria are true.


-- 
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
Re: slrn and wildcards in the scorefile
#212988
Author: P B
Date: Wed, 19 Dec 2007 18:54
22 lines
1771 bytes
Jason <Jason@invalid.address.lan> wrote in news:Evdaj.17181$bJ6.4434
@fe107.usenetserver.com:
 
> Is it possible to use wildcards in the From: in slrns scorefile?
> Something along the lines of From:foo*@domain.name. I searched the FAQ
> and the slrn website and saw all kinds of information on wildcards but
> nothing that I could find about the from field.

Try reading this:
http://www.slrn.org/docs/score.txt

SLRN (and Xnews, among others) uses regular expressions instead of 
wildcards. Think of regular expressions as "super"-wildcards that give you 
a great deal of flexibility about what to match or not match.

If you're not familiar with regexs I'd also recommend Google a bit to find 
maybe a tutorial or basic intro to regular expressions, since the SLRN 
scoring file assumes you know some about them at the outset.

-- 
P B
newsposter625 *at* gmail *dot* com
Re: slrn and wildcards in the scorefile
#212993
Author: Blinky the Shark
Date: Wed, 19 Dec 2007 20:02
14 lines
1788 bytes
P B wrote:

> SLRN (and Xnews, among others) uses regular expressions instead of 
> wildcards. Think of regular expressions as "super"-wildcards that give you 
> a great deal of flexibility about what to match or not match.

And they all use different ones, the bastages.  :)
 

-- 
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
Re: slrn and wildcards in the scorefile
#212994
Author: Blinky the Shark
Date: Wed, 19 Dec 2007 20:03
23 lines
2163 bytes
Peter J Ross wrote:

> In news.software.readers on Wed, 19 Dec 2007 14:33:02 -0400, Jason
> <Jason@invalid.address.lan> wrote:
> 
>> There's a troll in group I follow that consistently uses the same
>> address but changes a number in their account name. For example foo666
>> becomes foo667 the next time they troll.
>>
>> Is it possible to use wildcards in the From: in slrns scorefile?
>> Something along the lines of From:foo*@domain.name. I searched the FAQ
>> and the slrn website and saw all kinds of information on wildcards but
>> nothing that I could find about the from field.
> 
> 	From: foo[0-9]+@domain\.name

Oh, sure...get all fancy.  ;)

-- 
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
Re: slrn and wildcards in the scorefile
#212996
Author: P B
Date: Wed, 19 Dec 2007 20:41
16 lines
1541 bytes
Blinky the Shark <no.spam@box.invalid> wrote in
news:pan.2007.12.19.20.02.29.410027@thurston.blinkynet.net: 


> And they all use different ones, the bastages.  :)

That _is_ a nuisance. I guess the SLRN format seems to be a sort of de 
facto standard (I know at least Pan and Xnews borrow a lot from it). I 
actually just today finished making a little perl script to convert my SLRN 
'score' file to an Xnews 'score.ini' and vice versa to save some headache 
when I switch back and forth between the two.


-- 
P B
newsposter625 *at* gmail *dot* com
Re: slrn and wildcards in the scorefile
#212998
Author: Blinky the Shark
Date: Wed, 19 Dec 2007 21:31
29 lines
2519 bytes
P B wrote:

> Blinky the Shark <no.spam@box.invalid> wrote in
> news:pan.2007.12.19.20.02.29.410027@thurston.blinkynet.net: 
> 
> 
>> And they all use different ones, the bastages.  :)
> 
> That _is_ a nuisance. I guess the SLRN format seems to be a sort of de 

I bought and have partially completed the O'Reilly "Mastering Regular
Expressions". It's full of tables of How To Do This Thing With Eight Or
Nine Differing Flavors Of Regex.  Argh.

> facto standard (I know at least Pan and Xnews borrow a lot from it). I
> actually just today finished making a little perl script to convert my
> SLRN 'score' file to an Xnews 'score.ini' and vice versa to save some
> headache when I switch back and forth between the two.

I've given up on that.  I'm using Pan with my old slrn-mafia Score file,
but Xnews gets its own on my Laptop.  All three share the same newsrc
file, though.


-- 
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
Re: slrn and wildcards in the scorefile
#213006
Author: Adam Funk
Date: Wed, 19 Dec 2007 21:45
13 lines
1646 bytes
On 2007-12-19, P B wrote:

>> And they all use different ones, the bastages.  :)
>
> That _is_ a nuisance. I guess the SLRN format seems to be a sort of de 
> facto standard (I know at least Pan and Xnews borrow a lot from it). I 
> actually just today finished making a little perl script to convert my SLRN 
> 'score' file to an Xnews 'score.ini' and vice versa to save some headache 
> when I switch back and forth between the two.

*Everyone* knows that Perl is the de facto standard for regexes!

[retreats to a safe distance to watch the food fight]
Re: slrn and wildcards in the scorefile
#213007
Author: andrew
Date: Wed, 19 Dec 2007 22:02
23 lines
2136 bytes
On 2007-12-19, P B <newsposter625@gmail.com> wrote:
> Blinky the Shark <no.spam@box.invalid> wrote in
> news:pan.2007.12.19.20.02.29.410027@thurston.blinkynet.net: 
>
>
>> And they all use different ones, the bastages.  :)
>
> That _is_ a nuisance. I guess the SLRN format seems to be a sort of de 
> facto standard (I know at least Pan and Xnews borrow a lot from it). I 
> actually just today finished making a little perl script to convert my SLRN 
> 'score' file to an Xnews 'score.ini' and vice versa to save some headache 
> when I switch back and forth between the two.

Actually with regards to Xnews I remember reading that the scoring
system was taken complete from slrn, with gracious acknowledgements.

           Andrew

-- 
Now I can praise him, now that I can stand by to mourn
and speak before this web that killed my father; yet
I grieve for the thing done, the death, and all our race.
I have won; but my victory is soiled, and has no pride.
Re: slrn and wildcards in the scorefile
#212999
Author: Frank Slootweg
Date: Wed, 19 Dec 2007 22:16
22 lines
2120 bytes
Adam Funk <a24061@ducksburg.com> wrote:
> On 2007-12-19, P B wrote:
> 
> >> And they all use different ones, the bastages.  :)
> >
> > That _is_ a nuisance. I guess the SLRN format seems to be a sort of de 
> > facto standard (I know at least Pan and Xnews borrow a lot from it). I 
> > actually just today finished making a little perl script to convert my SLRN 
> > 'score' file to an Xnews 'score.ini' and vice versa to save some headache 
> > when I switch back and forth between the two.
> 
> *Everyone* knows that Perl is the de facto standard for regexes!

  That's indeed what youngsters like you *think*. *Real Men* (tm) know
that it's [e]grep(1)/regexp(5) [1] [2].

[1] See their manpages on any real [3] UNIX system.

[2] And documented in *real* (de jure) standards like XPG (X/Open
Portability Guide).

[2] No, not that wimpy Linux stuff.
Re: slrn and wildcards in the scorefile
#213001
Author: Allodoxaphobia
Date: Wed, 19 Dec 2007 22:36
29 lines
2172 bytes
On Wed, 19 Dec 2007 13:31:19 -0800, Blinky the Shark wrote:
> P B wrote:
>> Blinky the Shark <no.spam@box.invalid> wrote:
>> 
>>> And they all use different ones, the bastages.  :)
>> 
>> That _is_ a nuisance. I guess the SLRN format seems to be a sort of de 
>
> I bought and have partially completed the O'Reilly "Mastering Regular
> Expressions". It's full of tables of How To Do This Thing With Eight Or
> Nine Differing Flavors Of Regex.  Argh.

"Standards are GREAT!  And, there are sooooo many to choose from!"

My favorite outrageous example is twix `aspell` and `ispell` where
it's:
	[a] accept	[i] insert	in one
and
	[a] add		[i] ignore	in the other
AND,
	I never remember which is which  --  until I've [a]dded (or, 
[i]nserted) numerous miz-spelings (sic) into the user dictionary.
sigh...

Jonesy
-- 
  Marvin L Jones    | jonz          | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
    *** Killfiling google posts: <http://jonz.net/ng.htm>
Re: slrn and wildcards in the scorefile
#213005
Author: Blinky the Shark
Date: Thu, 20 Dec 2007 01:54
36 lines
2711 bytes
Allodoxaphobia wrote:

> On Wed, 19 Dec 2007 13:31:19 -0800, Blinky the Shark wrote:
>> P B wrote:
>>> Blinky the Shark <no.spam@box.invalid> wrote:
>>> 
>>>> And they all use different ones, the bastages.  :)
>>> 
>>> That _is_ a nuisance. I guess the SLRN format seems to be a sort of de 
>>
>> I bought and have partially completed the O'Reilly "Mastering Regular
>> Expressions". It's full of tables of How To Do This Thing With Eight Or
>> Nine Differing Flavors Of Regex.  Argh.
> 
> "Standards are GREAT!  And, there are sooooo many to choose from!"
> 
> My favorite outrageous example is twix `aspell` and `ispell` where
> it's:
> 	[a] accept	[i] insert	in one
> and
> 	[a] add		[i] ignore	in the other
> AND,
> 	I never remember which is which  --  until I've [a]dded (or, 
> [i]nserted) numerous miz-spelings (sic) into the user dictionary.
> sigh...

And that's only two flavors. :)  Here's one of the regex tables:

http://blinkynet.net/stuff/comp/regexen.jpg


-- 
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
Re: slrn and wildcards in the scorefile
#213019
Author: Adam Funk
Date: Thu, 20 Dec 2007 11:21
16 lines
1578 bytes
On 2007-12-19, Frank Slootweg wrote:

>> *Everyone* knows that Perl is the de facto standard for regexes!
>
>   That's indeed what youngsters like you *think*. *Real Men* (tm) know
> that it's [e]grep(1)/regexp(5) [1] [2].
>
> [1] See their manpages on any real [3] UNIX system.
>
> [2] And documented in *real* (de jure) standards like XPG (X/Open
> Portability Guide).
>
> [2] No, not that wimpy Linux stuff.

Would that be a system with automatic footnote numbering?
Re: slrn and wildcards in the scorefile
#213021
Author: P B
Date: Thu, 20 Dec 2007 13:25
16 lines
1757 bytes
andrew <andrew@ilium.invalid> wrote in
news:slrnfmj581.39k.andrew@ilium.invalid: 

> Actually with regards to Xnews I remember reading that the scoring
> system was taken complete from slrn, with gracious acknowledgements.

It was ... but then there are still some differences. Most notably, the 
case sensitivity switch ('\c' in SLRN, and '=' instead of ':' in Xnews); 
and the newsgroup section header (Xnews uses regex and the '.' wildcard and 
SLRN uses literals and the '*' wildcard. Also, SLRN requires '{}' and '()' 
in regexs to be escaped because S-Lang requires it, whereas Xnews has no 
such requirement.

-- 
P B
newsposter625 *at* gmail *dot* com
Re: slrn and wildcards in the scorefile
#213029
Author: Frank Slootweg
Date: Thu, 20 Dec 2007 20:07
20 lines
2085 bytes
Adam Funk <a24061@ducksburg.com> wrote:
> On 2007-12-19, Frank Slootweg wrote:
> 
> >> *Everyone* knows that Perl is the de facto standard for regexes!
> >
> >   That's indeed what youngsters like you *think*. *Real Men* (tm) know
> > that it's [e]grep(1)/regexp(5) [1] [2].
> >
> > [1] See their manpages on any real [3] UNIX system.
> >
> > [2] And documented in *real* (de jure) standards like XPG (X/Open
> > Portability Guide).
> >
> > [2] No, not that wimpy Linux stuff.
> 
> Would that be a system with automatic footnote numbering?

  No, it's just that even when I just have to *mention* Linux, I get so
worked up that my fingers tremble, my lap(top) shakes, ... you get the
idea!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads