Thread View: news.software.readers
4 messages
4 total messages
Started by Noel Llopis
Sun, 13 Feb 2000 00:00
XNews: How to filter all caps subjects?
Author: Noel Llopis
Date: Sun, 13 Feb 2000 00:00
Date: Sun, 13 Feb 2000 00:00
35 lines
1554 bytes
1554 bytes
I'd like XNews to filter all messages whose subject does
not contain at least one lowercase letter in the range [a-z].
How do I do it? I admit, I'm not an expert with regexps, but
everything I tried failed.
Basically, I'd like to have this rule:
[.]
Score: -9999
Subject= NOT[a-z]
But I don't know how to do a NOT using a regular expresion
(it's not the same thing as [^a-z]).
So then I tried the following:
% Assign -9999 to ALL posts
[.]
Score: -9999
Subject: .
% Now add 9999 back if it contains one lowercase letter.
[.]
Score: +9999
Subject= [a-z]
But apparently XNews stops processing messages once they hit
-9999, so I never get a chance to increase them back to 0.
I think I'm making this more complicated than it really is.
Anybody can help me out?
Thanks.
--Noel
Re: XNews: How to filter all caps subjects?
Author: Wayne Menzie
Date: Sun, 13 Feb 2000 00:00
Date: Sun, 13 Feb 2000 00:00
31 lines
1771 bytes
1771 bytes
waynem@bosmedtechdotcom.nospam (Wayne Menzie) wrote in <8ED98465Dwayneshammalammading@24.128.44.7>: >llopis@home.com.xxx (Noel Llopis) wrote in ><8ED98F919327849032hjk432079@24.2.2.74>: > >> >>I'd like XNews to filter all messages whose subject does >>not contain at least one lowercase letter in the range [a-z]. >>How do I do it? I admit, I'm not an expert with regexps, but >>everything I tried failed. >> >>Basically, I'd like to have this rule: >>[.] >> Score: -9999 >> Subject= NOT[a-z] > >From the score0.ini included with Xnews: >[.] > % kill if subject doesn't contain at least 1 lower case letter > % i.e., kill all caps subject > Score:: -9999 > ~Subject= [a-z] Sorry to respond to my own post but, in general, you use a ~ before the header that you want to filter on to specify not. Re-read scoring.txt for some other pointers. Wayne Menzie
Re: XNews: How to filter all caps subjects?
Author: Noel Llopis
Date: Sun, 13 Feb 2000 00:00
Date: Sun, 13 Feb 2000 00:00
21 lines
1366 bytes
1366 bytes
waynem@bosmedtechdotcom.nospam (Wayne Menzie) wrote in <8ED98465Dwayneshammalammading@24.128.44.7>: >From the score0.ini included with Xnews: >[.] > % kill if subject doesn't contain at least 1 lower case letter > % i.e., kill all caps subject > Score:: -9999 > ~Subject= [a-z] Boy, now I feel silly. I must have read all docs about filtering and regexp but the sample score file, which I only read the first time I was setting it up. Thanks for pointing it out anyway. Ahhh... No more all caps messages :-) --Noel
Re: XNews: How to filter all caps subjects?
Author: Wayne Menzie
Date: Sun, 13 Feb 2000 00:00
Date: Sun, 13 Feb 2000 00:00
25 lines
1413 bytes
1413 bytes
llopis@home.com.xxx (Noel Llopis) wrote in <8ED98F919327849032hjk432079@24.2.2.74>: > >I'd like XNews to filter all messages whose subject does >not contain at least one lowercase letter in the range [a-z]. >How do I do it? I admit, I'm not an expert with regexps, but >everything I tried failed. > >Basically, I'd like to have this rule: >[.] > Score: -9999 > Subject= NOT[a-z] From the score0.ini included with Xnews: [.] % kill if subject doesn't contain at least 1 lower case letter % i.e., kill all caps subject Score:: -9999 ~Subject= [a-z] Wayne Menzie
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