🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
13 messages
13 total messages Started by John Wunderlich Fri, 02 Mar 2007 20:50
[Xnews] A little score.ini help please
#196122
Author: John Wunderlich
Date: Fri, 02 Mar 2007 20:50
42 lines
2296 bytes
OK.  I give up.
I know there's a lot of Xnews scorefile experts here and I've just 
run into a scoring problem that I can't solve.  I'm trying to score 
on the "From:" header.  The problem I'm running into here can be 
illustrated with SINNER's posts in this newsgroup.

Suppose I want to give Sinner a 5000 score on his posts.  From the 
header information, I see that his "From" header contains: 
"SINNER <99nesorjd@gates_of_hell.invalid>".  I create a score.ini 
file that contains only the following lines:
----- cut here
[.]
Score: 5000
From: SINNER <99nesorjd@gates_of_hell\.invalid>
----- cut here

The above scorefile will not find SINNER.  I've made a table of some 
"From" lines in the above file that will score sinner and some that 
won't.  Can anyone explain why the lines in the "doesn't work" 
section don't work?  It appears that no single expression is allowed 
to span the "<" character in sinner's From header.  There are cases 
where I'd like to do that.

These From lines Work:

From: ^sinner
From: 99
From: gates_of_hell
From: 99nesorjd@gates_of_hell\.invalid
From: 99.*invalid

These From lines don't work:

From: <99
From: \<99
From: SINNER.*hell
From: sinner.*@
From: SINNER <99nesorjd@gates_of_hell\.invalid>

It's got to be something simple...
TIA,
  John
Re: [Xnews] A little score.ini help please
#196124
Author: »Q«
Date: Fri, 02 Mar 2007 22:25
26 lines
1784 bytes
In <news:Xns98E78296F2DABwunderpsdrscraytheon@138.126.254.210>,
John Wunderlich <jwunderlich@lycos.com> wrote:

> These From lines Work:
> 
> From: ^sinner
> From: 99
> From: gates_of_hell
> From: 99nesorjd@gates_of_hell\.invalid
> From: 99.*invalid
> 
> These From lines don't work:
> 
> From: <99
> From: \<99
> From: SINNER.*hell
> From: sinner.*@
> From: SINNER <99nesorjd@gates_of_hell\.invalid>
> 
> It's got to be something simple...

I am not positive, but I believe Xnew separates the "real
name" from the e-mail address and checks against each string
separately.  And the < > are not included in the addy when the check is
done.  So each score rule should use the "real name" or the e-mail, but
not try to use both at once.
Re: [Xnews] A little score.ini help please
#196128
Author: Blinky the Shark
Date: Sat, 03 Mar 2007 05:10
39 lines
2373 bytes
»Q« wrote:
> In <news:Xns98E78296F2DABwunderpsdrscraytheon@138.126.254.210>,
> John Wunderlich <jwunderlich@lycos.com> wrote:
>
>> These From lines Work:
>> 
>> From: ^sinner
>> From: 99
>> From: gates_of_hell
>> From: 99nesorjd@gates_of_hell\.invalid
>> From: 99.*invalid
>> 
>> These From lines don't work:
>> 
>> From: <99
>> From: \<99
>> From: SINNER.*hell
>> From: sinner.*@
>> From: SINNER <99nesorjd@gates_of_hell\.invalid>
>> 
>> It's got to be something simple...
>
> I am not positive, but I believe Xnew separates the "real
> name" from the e-mail address and checks against each string
> separately.  And the < > are not included in the addy when the check is
> done.  So each score rule should use the "real name" or the e-mail, but
> not try to use both at once.

As for the greater-thans, my upscore rule for direct replies is:

Score:: =9999
References: blinkynet.net>$
References: bnooz@130.133.1.4>$


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [Xnews] A little score.ini help please
#196130
Author: me
Date: Sat, 03 Mar 2007 13:59
18 lines
1512 bytes
Blinky the Shark <no.spam@box.invalid> wrote in
news:slrneui0ma.dl4.no.spam@thurston.blinkynet.net: 

> 
> As for the greater-thans, my upscore rule for direct
> replies is: 
> 
> Score:: =9999
> References: blinkynet.net>$
> References: bnooz@130.133.1.4>$
> 
Shouldn't a purist use
130\.133\.1\.4 and \.net
(pro'ly makes no practial difference but ... ;)

J
-- 
Replies to: Nherr1professor2doktor31109(at)Oyahoo(dot)Tcom
Re: [Xnews] A little score.ini help please
#196132
Author: Blinky the Shark
Date: Sat, 03 Mar 2007 17:40
23 lines
1886 bytes
me@tadyatam.invalid wrote:
> Blinky the Shark <no.spam@box.invalid> wrote in
> news:slrneui0ma.dl4.no.spam@thurston.blinkynet.net: 
>
>> 
>> As for the greater-thans, my upscore rule for direct
>> replies is: 
>> 
>> Score:: =9999
>> References: blinkynet.net>$
>> References: bnooz@130.133.1.4>$
>> 
> Shouldn't a purist use
> 130\.133\.1\.4 and \.net
> (pro'ly makes no practial difference but ... ;)

I dunno.  I see people escaping stuff that I don't.


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [Xnews] A little score.ini help please
#196135
Author: »Q«
Date: Sat, 03 Mar 2007 18:48
38 lines
2370 bytes
In <news:slrneui0ma.dl4.no.spam@thurston.blinkynet.net>,
Blinky the Shark <no.spam@box.invalid> wrote:

> »Q« wrote:
> > In <news:Xns98E78296F2DABwunderpsdrscraytheon@138.126.254.210>,
> > John Wunderlich <jwunderlich@lycos.com> wrote:
> >  
> >> These From lines Work:
> >> 
> >> From: ^sinner
> >> From: 99
> >> From: gates_of_hell
> >> From: 99nesorjd@gates_of_hell\.invalid
> >> From: 99.*invalid
> >> 
> >> These From lines don't work:
> >> 
> >> From: <99
> >> From: \<99
> >> From: SINNER.*hell
> >> From: sinner.*@
> >> From: SINNER <99nesorjd@gates_of_hell\.invalid>
> >> 
> >> It's got to be something simple...  
> >
> > I am not positive, but I believe Xnew separates the "real
> > name" from the e-mail address and checks against each string
> > separately.  And the < > are not included in the addy when the
> > check is done.  So each score rule should use the "real name" or
> > the e-mail, but not try to use both at once.  
> 
> As for the greater-thans, my upscore rule for direct replies is:
> 
> Score:: =9999
> References: blinkynet.net>$
> References: bnooz@130.133.1.4>$

AFAIK, < and > are handled normally for other headers, just not From.
Re: [Xnews] A little score.ini help please
#196151
Author: John Wunderlich
Date: Sun, 04 Mar 2007 01:43
27 lines
1963 bytes
»Q« <boxcars@gmx.net> wrote in
»news:tqkmb4-3ca.ln1@goldry.remarqs.net: 

> I am not positive, but I believe Xnew separates the "real
> name" from the e-mail address and checks against each string
> separately.  And the < > are not included in the addy when the
> check is done.  So each score rule should use the "real name" or
> the e-mail, but not try to use both at once.
> 

That agrees with what I am seeing.
So instead of:

Score: 5000
From:  sinner.*hell

I need to use the form:

Score: 5000
From:  sinner
From:  hell

Awkward, but I guess it can be done.

Thanks Everyone,
  John
Re: [Xnews] A little score.ini help please
#196152
Author: Bert Byfield
Date: Sun, 04 Mar 2007 01:56
17 lines
1530 bytes
>>> Score:: =9999
>>> References: blinkynet.net>$
>>> References: bnooz@130.133.1.4>$

>> Shouldn't a purist use
>> 130\.133\.1\.4 and \.net
>> (pro'ly makes no practial difference but ... ;)

> I dunno.  I see people escaping stuff that I don't.

A period means "any character" so "130.133.1.4" matches "130x133x1x4" 
where x is *any* character. Usually this only matches for periods, but 
that isn't required so this test will fail now and then without 
escaping the periods.


Re: [Xnews] A little score.ini help please
#196153
Author: SINNER
Date: Sun, 04 Mar 2007 01:59
31 lines
2238 bytes
* John Wunderlich wrote in news.software.readers:
> »Q« <boxcars@gmx.net> wrote in
> »news:tqkmb4-3ca.ln1@goldry.remarqs.net: 

>> I am not positive, but I believe Xnew separates the "real
>> name" from the e-mail address and checks against each string
>> separately.  And the < > are not included in the addy when the
>> check is done.  So each score rule should use the "real name" or
>> the e-mail, but not try to use both at once.


> That agrees with what I am seeing.
> So instead of:

> Score: 5000
> From:  sinner.*hell

> I need to use the form:

> Score: 5000
> From:  sinner
> From:  hell

> Awkward, but I guess it can be done.

I guess I should be glad is isnt -5000 :)

-- 
David
Whom the mad would destroy, first they make Gods.
		-- Bernard Levin
Re: [Xnews] A little score.ini help please
#196155
Author: John Wunderlich
Date: Sun, 04 Mar 2007 02:12
12 lines
1850 bytes
SINNER <99nesorjd@gates_of_hell.invalid> wrote in news:idlpb4xnen.ln2
@news.gates-of-hell.com:

> I guess I should be glad is isnt -5000 :)
> 

Of course you *can* use -5000 if you prefer ...

Thanks, sinner, for letting me use your email as an example.  It's one 
of the few where the name does not match the first part of the actual 
email address for the purposes of this problem...  :-)
-- John
Re: [Xnews] A little score.ini help please
#196161
Author: Blinky the Shark
Date: Sun, 04 Mar 2007 03:27
25 lines
2221 bytes
Bert Byfield wrote:
>>>> Score:: =9999
>>>> References: blinkynet.net>$
>>>> References: bnooz@130.133.1.4>$
>
>>> Shouldn't a purist use
>>> 130\.133\.1\.4 and \.net
>>> (pro'ly makes no practial difference but ... ;)
>
>> I dunno.  I see people escaping stuff that I don't.
>
> A period means "any character" so "130.133.1.4" matches "130x133x1x4" 
> where x is *any* character. Usually this only matches for periods, but 
> that isn't required so this test will fail now and then without 
> escaping the periods.

I'll watch for that.  Thanks.  I'm rusty on...well, no, it's not so much
that I'm rusty with regex; I'm rusty on what Xnews needs.  I score the
same for slrn.


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [Xnews] A little score.ini help please
#196215
Author: Ted S.
Date: Mon, 05 Mar 2007 03:18
21 lines
2120 bytes
Somebody claiming to be Bert Byfield <BertByfield@nospam.not> wrote at 
Sun, 04 Mar 2007 01:56:24 GMT:

> A period means "any character" so "130.133.1.4" matches "130x133x1x4" 
> where x is *any* character. Usually this only matches for periods, but 
> that isn't required so this test will fail now and then without 
> escaping the periods.

Once upon a time, I was getting spam with things like F|R|E|E or F*R*E*E 
in the subject, so I set up my killfile to kill such things with the regex 
"f.r.e.e".  Some time later I got a message saying this rule had killed a 
spam, but I didn't see anything that looked like the word "free".

It turned out that the message killed (which was spam anyhow) contained 
the phrase "for every".

-- 
Ted <fedya at bestweb dot net>
Hmmm....  Eternal happiness for one dollar?  [Pauses] On second thought, 
I'd be happier *with* the dollar. --Montgomery Burns
<http://www.snpp.com/episodes/4F01.html>
Re: [Xnews] A little score.ini help please
#196227
Author: Mike Dee
Date: Mon, 05 Mar 2007 06:40
19 lines
2092 bytes
"Ted S." <fedya@bestweb.spam> wrote in
news:Xns98E9E01EADE868jUwe9053kODf78sfkj0@ID-121946.user.dfncis.de:

[...] 

> Once upon a time, I was getting spam with things like F|R|E|E or
> F*R*E*E in the subject, so I set up my killfile to kill such
> things with the regex "f.r.e.e".  Some time later I got a message
> saying this rule had killed a spam, but I didn't see anything that
> looked like the word "free". 
> 
> It turned out that the message killed (which was spam anyhow)
> contained the phrase "for every".

LOL. Now that is an excellent example of what to be wary of in 
preparing score files (and the power of metacharacters).

-- 
dee
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