🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by #MK Mon, 21 Jul 2003 23:39
Xnews Scoring Problem
#129155
Author: #MK
Date: Mon, 21 Jul 2003 23:39
29 lines
1805 bytes
Hi!
I would greatly appreciate some help.
I have downloaded XNEWS, and inserted the following rule into the score 
file.

"
% in news.software.readers - Xnews posts only! 
[news.software.readers]

	Score: -9999
	~Subject: xnews|[xnews]
"

My aim was to remove all non-Xnews post as -9999, however this doesn't seem 
to have worked.

Many posts / threads without the word xnews in their subjects haven't been 
scored as -9999, and I'm at a loss as to why!
For example, a thread with the subject: "Losing mac files" has not been 
scored as -9999 whilst a thread called "Ti" has [quite rightly so] been 
scored.
Hhhm! [Both are in this newsgroup!]

Could someone please just check over the aforementioned scoring rule and 
offer assistance?
Much thanks.


Re: Xnews Scoring Problem
#129156
Author: dkg_ctc
Date: Mon, 21 Jul 2003 23:54
33 lines
1903 bytes
"#MK" <noemail@noemail.com> wrote in
news:Xns93C06E1D2BCBnahknishom@193.38.113.46: 

> Hi!
> I would greatly appreciate some help.
> I have downloaded XNEWS, and inserted the following rule into the
> score file.
> 
> "
> % in news.software.readers - Xnews posts only! 
> [news.software.readers]
> 
>      Score: -9999
>      ~Subject: xnews|[xnews]
> "
> 
> My aim was to remove all non-Xnews post as -9999, however this
> doesn't seem to have worked.
> 
> Many posts / threads without the word xnews in their subjects
> haven't been scored as -9999, and I'm at a loss as to why!

Why not just

[news.software.readers]
Score: -9999
 ~Subject: x( |-|)news

The rule you quote above, if I understand my regexp's correctly, will 
score -9999 articles whose subjects don't contain xnews, x, n, e, w, 
or s.  You probably meant to put backslashes before the brackets in 
[xnews].  As for the rule I gave above, it will match xnews, x-news, 
and x news.
Re: Xnews Scoring Problem
#129157
Author: »Q«
Date: Tue, 22 Jul 2003 00:17
35 lines
2435 bytes
"#MK" <noemail@noemail.com> wrote in
<news:Xns93C06E1D2BCBnahknishom@193.38.113.46>:

> % in news.software.readers - Xnews posts only!
> [news.software.readers]
>
>      Score: -9999
>      ~Subject: xnews|[xnews]
> "
>
> My aim was to remove all non-Xnews post as -9999, however this
> doesn't seem to have worked.
>
> Many posts / threads without the word xnews in their subjects
> haven't been scored as -9999, and I'm at a loss as to why!
> For example, a thread with the subject: "Losing mac files" has not
> been scored as -9999 whilst a thread called "Ti" has [quite
> rightly so] been scored.
> Hhhm! [Both are in this newsgroup!]

The brackets in your regex define a character class.  As you have it,
no article with any of the letters x, n, e, w, or s will be scored
down.

> Could someone please just check over the aforementioned scoring
> rule and offer assistance?

~Subject: (X|x)news

will give articles without "Xnews" or "xnews" in the Subject the
score you want.  You don't need the brackets, as any Subject
containing the string "[xnews]" also contains the string "xnews".

-- 
»Q«
Re: Xnews Scoring Problem
#129170
Author: Guy
Date: Tue, 22 Jul 2003 01:06
17 lines
1707 bytes
#MK wrote:

> My aim was to remove all non-Xnews post
>

[\.readers$]
        Score:: -10000
        Subject: \d\.x.?news|\w+x.?news
        ~Subject: x.?news


-- 
Regards,
Guy

Xnews "XP" Icon Patcher Files
<http://guysalias.on.kenyanweb.com/patcher.html>
Re: Xnews Scoring Problem
#129169
Author: Guy
Date: Tue, 22 Jul 2003 01:09
13 lines
1654 bytes
»Q« wrote:

> ~Subject: (X|x)news
> 

ReGex is case insensitive.

-- 
Regards,
Guy

Xnews "XP" Icon Patcher Files
<http://guysalias.on.kenyanweb.com/patcher.html>
Re: Xnews Scoring Problem
#129174
Author: Tech Zero
Date: Tue, 22 Jul 2003 01:32
65 lines
3310 bytes
The voice of "#MK" drifted in on the cyber-winds, 
from the sea of virtual chaos...

> Hi! I would greatly appreciate some help. I have downloaded XNEWS,
> and inserted the following rule into the score file.
 <snip>
> Could someone please just check over the aforementioned scoring
> rule and offer assistance?


Like the other have said, "[]" is for singler charictor refrences
within a score value. As in "f[aoe]t" which will catch "fat", "fot",
and "fet" (It's in the help docs).

Now since Xnews scoring isn't case sensitive you don't need double
testing, as in "(X|x)" or "[Xx]". These simplifies things to:

    Score: -9999
	~Subject: xnews

Now, occasionally there are a few variations of Xnews tag, such as 
"X-News" & "X News". To account for this you can add a wildcard with 
a conditional, like so:

    Score: -9999
	~Subject: x\W?news

"\W" is the wildcard for any non-letter character, and the "?" say it 
doesn't have to be there to match. Unfortunately it's still not perfect, 
it still catches "Linux newsreader" Which makes perfect sense...

  linuX NEWSreader

Se we go back to the help pages and find the next useful thing, the 
word boundary marker "\b". Simply put, any character before or after 
this marker can't be another character. Conversely "\B" is it's 
opposite, where any character on ether side of it must be a letter. 

So our complete score entry is:

    Score: -9999
	~Subject: \bx\W?news

Of course, were would we be without hacks... Errr, "Power Tweekers" like 
myself. So just so you know here's the nasty score entries I use to 
catch almost every Xnews related post, even with out the tag: 

  [^news\.software\.readers$]
    % Topic Filters...
    Score:: -1000
	Subject: 40tude|Newsplex|XanaNews
	~Subject: Luu.Tran|\bx\W?news|XHDR|archive|filter|folder|help|prob|quest|queue|regex|scor|thank
    Score: -1000
	Subject: agent|dialg?og|Gravity|Hamster|slrn
	~Subject: \bx\W?news

I use "OnLoaded=acvShowGe0Score" in my groups.ini, so any post with a 
score less then zero is autmaticaly hidden...

-- 
The Reverend Tech Zero (AKA: Maxwell Pollare)
First Baptist Church of X-News, may Delphi v7 save your soul...

* http://www.slyck.com/xnews.html  http://www.seegras.de/xnews     *
* http://www.geocities.com/d4vidb/ http://xnews.newsguy.com/sizer/ *
Re: Xnews Scoring Problem
#129173
Author: Tech Zero
Date: Tue, 22 Jul 2003 01:38
22 lines
1438 bytes
The voice of "Guy" drifted in on the cyber-winds, 
from the sea of virtual chaos...

> #MK wrote:
> 
>> My aim was to remove all non-Xnews post
>>
> 
> [\.readers$]
>         Score:: -10000
>         Subject: \d\.x.?news|\w+x.?news
>         ~Subject: x.?news

Ummm... So you don't like "86.X-news"?

-- 
The Reverend Tech Zero (AKA: Maxwell Pollare)
First Baptist Church of X-News, may Delphi v7 save your soul...

* http://www.slyck.com/xnews.html  http://www.seegras.de/xnews     *
* http://www.geocities.com/d4vidb/ http://xnews.newsguy.com/sizer/ *
Re: Xnews Scoring Problem
#129177
Author: »Q«
Date: Tue, 22 Jul 2003 02:07
13 lines
1556 bytes
Guy <Use-Reply-To-Address-Header@[127.1]> wrote in
<news:93BFCD10511B22E284CEEC009E394A9D7@127.0.0.1>:

>> ~Subject: (X|x)news
>
> ReGex is case insensitive.

In general, it's not.  For Xnews' PCRE, you're right though - I always
forget that.

-- 
�Q�
Re: Xnews Scoring Problem
#129186
Author: Blinky the Shark
Date: Tue, 22 Jul 2003 05:09
15 lines
1482 bytes
Tech Zero wrote:

> "\W" is the wildcard for any non-letter character, and the "?" say it 
> doesn't have to be there to match. Unfortunately it's still not perfect, 
> it still catches "Linux newsreader" Which makes perfect sense...

>   linuX NEWSreader

That's okay.  Nothing wrong with a little exposure to the other side. :)

-- 
Blinky                                                Linux RU 297263
Spam: The Boulder Pledge                     http://snurl.com/bpledge
Digest: Best of Internet Oracularities    http://snurl.com/dig_oracle
Re: Xnews Scoring Problem
#129227
Author: #MK
Date: Tue, 22 Jul 2003 18:23
19 lines
1717 bytes
"dkg_ctc" <dontknowguilt@hotmail.com> transmitted the following 
communciation via an interplexing subspace beacon on subspace frequency 
news:Xns93BFC0546CAC6dkgctc@130.133.1.4 on stardate 22 Jul 2003

> Why not just
> 
> [news.software.readers]
> Score: -9999
>  ~Subject: x( |-|)news
> 
> The rule you quote above, if I understand my regexp's correctly, will 
> score -9999 articles whose subjects don't contain xnews, x, n, e, w, 
> or s.  You probably meant to put backslashes before the brackets in 
> [xnews].  As for the rule I gave above, it will match xnews, x-news, 
> and x news.



Thanks for the advice! 
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