🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #27939

Re: Kill file question for trn

#27939
From: Denis McKeon
Date: Tue, 26 Nov 1996 00:00
44 lines
2169 bytes
[followup both posted and mailed to poster]

In <57c8a3$sg6@pf1.phil.uni-sb.de> benni@phil.uni-sb.de wrote:
>Huhu
>
>can somebody tell me a regular expression that hits all subject lines
>which contain _no_ lower case characters, like
>
> !!! FREE NUDE PICTURES !!!
> $$$$ BIG MONEY, NO RISK, READ NOW!!! $$$$

Here are 24 lines of trn command file that will save you some time - 
flavor to suit your tastes.

# Kill articles with !! $$ ***** or please read in subject
/\|!!\|\$\$\|\*\*\*\*\*\|please read/:j=
# Kill articles with no or unwanted subject line
/^Subject: *((*None)*\|\bTest\b\|[(<]*No subject[)>])* *$/:j=
#
/FREE\|PGG\|MAKE.*MONEY\|MONEY.*FAST\|NEED.*CASH\|, *000\|MILLION/:j=
/GUARANT\|CREDIT REPAIR\|LONELY\|IMMEDIATE.*PROFITS\|MESSAGE.*LOVE/:j=
/TRAVEL.*WORLD\|URGENT.*PETITION\|CONTEST\|WORK.*HOME\|SPARE.*TIME/:j=
/NAKED\|CHEAP.*PHONE.*INTERNATION\|FABULOUS.*INCOME\|READ THIS/:j=
&+t
/my.*page\|new home page\|new *web *site\|new *site/:j=
# Kill other articles with all caps subject lines
/^Subject:[Re: ]*[^a-z]*$/c:j=
#
# W R I T T E N   L I K E   T H I S
/ [^ ] [^ ] [^ ] [^ ] [^ ] [^ ]/:j=
#
# 6 colons -> cross-posted to 5 or more groups
# Xref: server g1:N g2:N g3:N  ...
/:.*:.*:.*:.*:.*:/HXref:,=
#
# cross-posted to N or more alt.* groups existing on this server
/ alt\..* alt\..* alt\./HXref:j=

-- 
Denis McKeon 
dmckeon@swcp.com

Technical Details
Message-ID: <57fb44$c06@sloth.swcp.com>
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!not-for-mail
References: <57c8a3$sg6@pf1.phil.uni-sb.de>

Show Full Headers
Complete Article Headers
Message-ID: <57fb44$c06@sloth.swcp.com>
Subject: Re: Kill file question for trn
Date: Tue, 26 Nov 1996 00:00:00 +0000
From: dmckeon@swcp.com (Denis McKeon)
References: <57c8a3$sg6@pf1.phil.uni-sb.de>
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!not-for-mail
X-Deja-AN: 200882218
Sender: dmckeon@swcp.com (Denis McKeon)
Organization: Connemara - Computing for People - ABQ/NM/USA
Reply-to: dmckeon@swcp.com
Newsgroups: news.software.readers
X-copyright: Copyright 1996 by Denis McKeon
Originator: dmckeon@slug.swcp.com
X-mailer: Mail User's Shell (7.2.5 10/14/92)