🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #129463

Re: [Xnews] regex assistance needed

#129463
From: Tech Zero
Date: Fri, 25 Jul 2003 20:01
34 lines
2217 bytes
The voice of "Darrien" drifted in on the cyber-winds, 
from the sea of virtual chaos...

> I'd like to do two things in Xnews. 
> 
> First, I'd like to kill all articles and their replies where the
> subject line contains all caps. I currently have "~Subject=
> .*[a-z]" in my score file. I've tried modifying it to something
> like "~Subject= .*(re)?[a-z]" and variants, but have had no luck.

It's the "e" in "Re" that's the hitch. Since its quite unlikely that 
someone would post a message consisting only the Capital letter "E" I 
just remove it from test. This eliminates the need for further 
exceptions...

    Score: -9999
	~Subject= [a-df-z]

Small, simple, and elegant...

> Secondly, I'd like to kill all articles that come from X days in
> the future. Can this be done with a regex? If not, is there a
> setting I have overlooked? 

Unfortunately time isn't score-able... There is no way to create an 
expression to test on the Date/Time headers using Regex.

-- 
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/ *
Technical Details
Message-ID: <Xns93C38E9D34853Insomniac@news.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!blg17w1y46mh.ab.hsia.telus.NET!not-for-mail
References: <Xns93C34E26ED97CDarrienL@140.99.99.130>

Show Full Headers
Complete Article Headers
Message-ID: <Xns93C38E9D34853Insomniac@news.individual.net>
Subject: Re: [Xnews] regex assistance needed
Date: Fri, 25 Jul 2003 20:01:10 +0000
From: Tech Zero <nowhere@dragonfur.ca>
References: <Xns93C34E26ED97CDarrienL@140.99.99.130>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!blg17w1y46mh.ab.hsia.telus.NET!not-for-mail
Newsgroups: news.software.readers
Lines: 33
Reply-To: techzero@dragonfur.ca
NNTP-Posting-Host: blg17w1y46mh.ab.hsia.telus.net (209.89.216.177)
X-Trace: news.uni-berlin.de 1059163270 19202712 209.89.216.177 (16 [139626])
User-Agent: Xnews/06.07.17