🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by tricky2k Tue, 23 May 2006 20:27
Blocking similar messages via score.ini. I need a piece of advice
#185504
Author: tricky2k
Date: Tue, 23 May 2006 20:27
28 lines
2199 bytes
Hi

I'm using an old version of XNews, but works good to me, 5.03.24.
Anyway, i'm trying to block a bunch of annoying messages all with the
same subject structure and i don't know what line i have to add
manually to the score.ini file in order to "kill them all".

The structure is this

Subject: axxxxx_ -_ "axxxxx00000000.jpg"

Replace the underscores with spaces. I've put the underscores just to
see the structure better.

The blocks "axxxxx" are both the same, where the "x" could be any
letter and in any quantity of letters. For example:

Subject: animal_-_"animal152456845.jpg"
Subject: structure_-_"structure7585214123.jpg"
Subject: glue_-_"glue3664758832.jpg"

So the idea is, using wildcards or whatever, create a rule or a number
of rules in score.ini that blocks the messages with exactly that
structure. I can´t find a way to do it, so i really appreciate some
help.

Thanks in advance
Re: Blocking similar messages via score.ini. I need a piece of advice
#185515
Author: Mike Dee
Date: Wed, 24 May 2006 00:26
19 lines
1723 bytes
"tricky2k" <tricky2k@gmail.com> wrote in 
news:1148416042.338417.218190@g10g2000cwb.googlegroups.com:

> Subject: animal_-_"animal152456845.jpg"
> Subject: structure_-_"structure7585214123.jpg"
> Subject: glue_-_"glue3664758832.jpg"
> 

Score:: -9999
   Subject: ^[a-z](.*)\.jpg

The breakdown:

^ Subject begins with any letter of the alphabet [a-z] where the range 
is from "a" to "z", (.*) covers any alphanumeric character from the 
first letter up until it \. hits a "." followed by "jpg".

-- 
dee
Re: Blocking similar messages via score.ini. I need a piece of advice
#185519
Author: »Q«
Date: Wed, 24 May 2006 00:54
33 lines
2409 bytes
Mike Dee <mikedee@invalid.invalid> wrote in
<news:Xns97CD69E5D907Eemteedee@148.160.160.156>:

> "tricky2k" <tricky2k@gmail.com> wrote in
> news:1148416042.338417.218190@g10g2000cwb.googlegroups.com:
>
>> Subject: animal_-_"animal152456845.jpg"
>> Subject: structure_-_"structure7585214123.jpg"
>> Subject: glue_-_"glue3664758832.jpg"
[where the underscores are really spaces]

> Score:: -9999
>    Subject: ^[a-z](.*)\.jpg
>
> The breakdown:
>
> ^ Subject begins with any letter of the alphabet [a-z] where the
> range is from "a" to "z", (.*) covers any alphanumeric character
> from the first letter up until it \. hits a "." followed by "jpg".

That'll certainly catch them, but it will also kill any Subject
starting with a lower-case letter and having a '.jpg' somewhere later.

Since the same string appears at the beginning of the Subject and at
the start of the filename, a back reference should avoid false
positives.

Subject: ^([a-z]*)\s-\s"\1\d*\.jpg"$

-- 
»Q«
     links to Xnews resources:
     <http://xnews.remarqs.net/>
Re: Blocking similar messages via score.ini. I need a piece of advice
#185526
Author: »Q«
Date: Wed, 24 May 2006 06:15
51 lines
3049 bytes
»Q« <boxcars@gmx.net> wrote in
»<news:MrQ97CCCA7CFCB09itsmeitsQ@QsFQDN.dyndns.org>:

> Mike Dee <mikedee@invalid.invalid> wrote in
> <news:Xns97CD69E5D907Eemteedee@148.160.160.156>:
>
>> "tricky2k" <tricky2k@gmail.com> wrote in
>> news:1148416042.338417.218190@g10g2000cwb.googlegroups.com:
>>
>>> Subject: animal_-_"animal152456845.jpg"
>>> Subject: structure_-_"structure7585214123.jpg"
>>> Subject: glue_-_"glue3664758832.jpg"
> [where the underscores are really spaces]
>
>> Score:: -9999
>>    Subject: ^[a-z](.*)\.jpg
>>
>> The breakdown:
>>
>> ^ Subject begins with any letter of the alphabet [a-z] where the
>> range is from "a" to "z", (.*) covers any alphanumeric character
>> from the first letter up until it \. hits a "." followed by
>> "jpg".
>
> That'll certainly catch them, but it will also kill any Subject
> starting with a lower-case letter and having a '.jpg' somewhere
> later.
>
> Since the same string appears at the beginning of the Subject and
> at the start of the filename, a back reference should avoid false
> positives.
>
> Subject: ^([a-z]*)\s-\s"\1\d*\.jpg"$
           123333332444444556667777778

I was in a bit of a hurry before.  Here's the rundown, in case it
helps.

1 - Matches the start of the string.
2 - The parentheses capture a substring which consists of
3 - any number of letters.
4 - Matches space, dash, space, quotation mark.
5 - The back reference matches the substring captured earlier.
6 - Matches any number of digits.
7 - Matches literal .jpeg"
8 - Matches the end of the string.

-- 
»Q«
     links to Xnews resources:
     <http://xnews.remarqs.net/>
Re: Blocking similar messages via score.ini. I need a piece of advice
#185530
Author: Mike Dee
Date: Wed, 24 May 2006 06:36
41 lines
2578 bytes
»Q« <boxcars@gmx.net> wrote in
»news:MrQ97CCCA7CFCB09itsmeitsQ@QsFQDN.dyndns.org: 

> Mike Dee <mikedee@invalid.invalid> wrote in
> <news:Xns97CD69E5D907Eemteedee@148.160.160.156>:
> 
>> "tricky2k" <tricky2k@gmail.com> wrote in
>> news:1148416042.338417.218190@g10g2000cwb.googlegroups.com:
>>
>>> Subject: animal_-_"animal152456845.jpg"
>>> Subject: structure_-_"structure7585214123.jpg"
>>> Subject: glue_-_"glue3664758832.jpg"
> [where the underscores are really spaces]

>> Score:: -9999
>>    Subject: ^[a-z](.*)\.jpg
[...]
> That'll certainly catch them, but it will also kill any Subject
> starting with a lower-case letter

Except Xnews is case insensitive unless told otherwise... will kill any 
subject here, starting with a letter IOW.

> and having a '.jpg' somewhere
> later.

I _really should've_ included the "$ at the end of that :-[ 
 
> Since the same string appears at the beginning of the Subject and
> at the start of the filename, a back reference should avoid false
> positives.
> 
> Subject: ^([a-z]*)\s-\s"\1\d*\.jpg"$

Yes, that's a *lot* nicer. As I read it, the "filename" was part of the 
subject title. But I guess as long as the beginning subject name is 
included again somewhere in the subject's "filename" the back reference 
will continue to work.

-- 
dee
Re: Blocking similar messages via score.ini. I need a piece of advice
#185534
Author: »Q«
Date: Wed, 24 May 2006 06:42
26 lines
2169 bytes
»Q« <boxcars@gmx.net> wrote in
<news:MrQ97CDCCFF809FitsmeitsQ@QsFQDN.dyndns.org>:

>> Subject: ^([a-z]*)\s-\s"\1\d*\.jpg"$
>           123333332444444556667777778
>
> I was in a bit of a hurry before.  Here's the rundown, in case it
> helps.
>
> 1 - Matches the start of the string.
> 2 - The parentheses capture a substring which consists of
> 3 - any number of letters.
> 4 - Matches space, dash, space, quotation mark.
> 5 - The back reference matches the substring captured earlier.
> 6 - Matches any number of digits.
> 7 - Matches literal .jpeg"
> 8 - Matches the end of the string.

Grr.  Should be

7 - Matches literal .jpg"

-- 
»Q«
     links to Xnews resources:
     <http://xnews.remarqs.net/>
Re: Blocking similar messages via score.ini. I need a piece of advice
#185598
Author: tricky2k
Date: Thu, 25 May 2006 02:51
11 lines
1857 bytes
Well, i gave a try and... thanks a lot, it works perfectly. Not at
first, but then i deleted the parts 7 and 8, so i left the rule like
this

Subject: ^([a-z]*)\s-\s"\1\d*

And that way it killed all messages with that subject structure, and no
other messages seems to be affected.

Once again, thanks to you all
Re: Blocking similar messages via score.ini. I need a piece of advice
#185603
Author: Ted S.
Date: Thu, 25 May 2006 03:23
15 lines
1750 bytes
Somebody claiming to be "tricky2k" <tricky2k@gmail.com> wrote in 
news:1148525493.020185.30490@j55g2000cwa.googlegroups.com:

> Subject: ^([a-z]*)\s-\s"\1\d*
> 
> And that way it killed all messages with that subject structure, and no
> other messages seems to be affected.

Doesn't \d* mean *0* or more digits?  If you want one or more, it should 
be \d+ instead.

-- 
Ted <fedya at bestweb dot net>
Oh Marge, anyone can miss Canada, all tucked away down there....
--Homer Simpson
Re: Blocking similar messages via score.ini. I need a piece of advice
#185608
Author: »Q«
Date: Thu, 25 May 2006 03:39
22 lines
2224 bytes
"tricky2k" <tricky2k@gmail.com> wrote in
<news:1148525493.020185.30490@j55g2000cwa.googlegroups.com>:

> Well, i gave a try and... thanks a lot, it works perfectly. Not at
> first, but then i deleted the parts 7 and 8, so i left the rule
> like this
>
> Subject: ^([a-z]*)\s-\s"\1\d*
>
> And that way it killed all messages with that subject structure,
> and no other messages seems to be affected.
>
> Once again, thanks to you all

Glad it helped.  Parts 7 and 8 should have been ok unless there were
some characters after the closing " -- maybe there are some spaces
after the filenames in those subjects.

-- 
»Q«
     links to Xnews resources:
     <http://xnews.remarqs.net/>
Re: Blocking similar messages via score.ini. I need a piece of advice
#185609
Author: »Q«
Date: Thu, 25 May 2006 03:41
20 lines
2236 bytes
"Ted S." <fedya@bestweb.spam> wrote in
<news:Xns97CDED72764BC8jUwe9053kODf78sfkj0@ID-121946.user.dfncis.de>:

> Somebody claiming to be "tricky2k" <tricky2k@gmail.com> wrote in
> news:1148525493.020185.30490@j55g2000cwa.googlegroups.com:
>
>> Subject: ^([a-z]*)\s-\s"\1\d*
>>
>> And that way it killed all messages with that subject structure,
>> and no other messages seems to be affected.
>
> Doesn't \d* mean *0* or more digits?  If you want one or more, it
> should be \d+ instead.

Yeah.  Or since it's now at the end of the expression, just \d instead.

-- 
»Q«
     links to Xnews resources:
     <http://xnews.remarqs.net/>
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