🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by David Ripton Mon, 20 Oct 1997 00:00
trn: Killing posts with all-caps subjects?
#36721
Author: David Ripton
Date: Mon, 20 Oct 1997 00:00
27 lines
1349 bytes
I've read the trn man page, the trn FAQ, and the rn killfile 
FAQ.  This shouldn't be hard, but I can't get it to work.

I want to globally kill any article with an all-caps subject.
More precisely, I'd like to globally kill any article whose
subject line doesn't include at least one lowercase letter.

The obvious regexp syntax is:
/^[^a-z]*$/c:j

But it doesn't work.  That syntax does work with grep, so 
I've clearly hit upon a difference in the way trn's regular
expressions work compared to those in some other Unix 
programs.

Is there an alternative syntax that works?  I'm using trn
3.5, if it matters, but I can upgrade to a 4.0 beta if it
makes a difference.

Thanks.

-- 
David Ripton    dripton@netcom.com
spamgard(tm): To email me, put "geek" in your Subject line.

Re: trn: Killing posts with all-caps subjects?
#36728
Author: Patrick Phillips
Date: Tue, 21 Oct 1997 00:00
36 lines
1753 bytes
In article <driptonEIDA3F.FJ@netcom.com>, dripton@netcom.com says...
> I've read the trn man page, the trn FAQ, and the rn killfile 
> FAQ.  This shouldn't be hard, but I can't get it to work.
> 
> I want to globally kill any article with an all-caps subject.
> More precisely, I'd like to globally kill any article whose
> subject line doesn't include at least one lowercase letter.
> 
> The obvious regexp syntax is:
> /^[^a-z]*$/c:j
> 
> But it doesn't work.  That syntax does work with grep, so 
> I've clearly hit upon a difference in the way trn's regular
> expressions work compared to those in some other Unix 
> programs.
> 
> Is there an alternative syntax that works?  I'm using trn
> 3.5, if it matters, but I can upgrade to a 4.0 beta if it
> makes a difference.
> 
> Thanks.
> 
> -- 
> David Ripton    dripton@netcom.com
> spamgard(tm): To email me, put "geek" in your Subject line.
> 
Hi, your logging in UNIX that most only see lower case crocheters, so 
uppr cae won't mtter, or rhat's guess. 

-- 
Patrick in IL. {PI Special Contributor}
checkout the Microsoft Knowledge Base 
at http://www.microsoft.com/support

Re: trn: Killing posts with all-caps subjects?
#36738
Author: John W Stuart
Date: Wed, 22 Oct 1997 00:00
34 lines
1502 bytes
According to David Ripton <dripton@netcom.com>:
>I've read the trn man page, the trn FAQ, and the rn killfile 
>FAQ.  This shouldn't be hard, but I can't get it to work.
>
>I want to globally kill any article with an all-caps subject.
>More precisely, I'd like to globally kill any article whose
>subject line doesn't include at least one lowercase letter.
>
>The obvious regexp syntax is:
>/^[^a-z]*$/c:j
>
>But it doesn't work.  That syntax does work with grep, so 
>I've clearly hit upon a difference in the way trn's regular
>expressions work compared to those in some other Unix 
>programs.

Howdy,

I use  /^Subject[: Re]*[^a-z]*$/c:j  to kill subjects with all CAPS. 
Someone in this group posted it.  It seems to work but I haven't really
tested it. 

I also use:
/xref:.*:.*:.*:.*:.*:/Hxref:j
to kill postings with lots of crossposts.

Hope this helps.
Later,

John W Stuart
stuart@bch48.bch.ncsu.edu

Re: trn: Killing posts with all-caps subjects?
#36750
Author: Eli the Bearded
Date: Thu, 23 Oct 1997 00:00
32 lines
2348 bytes
Posted and mailed.

David Ripton <dripton@netcom.com> wrote:
> John W Stuart <stuart@miranda.tempest.com> wrote:
> >/xref:.*:.*:.*:.*:.*:/Hxref:j
> >to kill postings with lots of crossposts.
> 
> I look for a single comma in the Newsgroups line, and then nuke the
> post and its followups.
> /,/Hnewsgroups:,

Xref is an overview record header while Newsgroups is not, so xref
killing is faster. Other overview record headers and their uses are:

Header		Killfile use
----------------------------------------
Subject		obvious
From		obvious
Date		don't know of any general purpose use
Message-ID	site killing (eg Boursy's pgh.org)
References	killing followups to site killed posts; finding followups to
		articles of interest (eg your own)
Bytes		\ might be useful for some groups where long or short stuff
Lines		/ is expected, I have never tried to use it though
Xref		killing crossposts

Elijah
------
globally "kills" with /qz.little-neck.ny.us/HReferences:.++

Re: trn: Killing posts with all-caps subjects?
#36756
Author: David Ripton
Date: Thu, 23 Oct 1997 00:00
45 lines
2176 bytes
In article <62l0kn$s67$1@uni00nw.unity.ncsu.edu>,
John W Stuart <stuart@miranda.tempest.com> wrote:
>According to David Ripton <dripton@netcom.com>:
>>I've read the trn man page, the trn FAQ, and the rn killfile 
>>FAQ.  This shouldn't be hard, but I can't get it to work.
>>
>>I want to globally kill any article with an all-caps subject.
>>More precisely, I'd like to globally kill any article whose
>>subject line doesn't include at least one lowercase letter.
>>
>>The obvious regexp syntax is:
>>/^[^a-z]*$/c:j
>>
>>But it doesn't work.  That syntax does work with grep, so 
>>I've clearly hit upon a difference in the way trn's regular
>>expressions work compared to those in some other Unix 
>>programs.

>I use  /^Subject[: Re]*[^a-z]*$/c:j  to kill subjects with all CAPS. 
>Someone in this group posted it.  It seems to work but I haven't really
>tested it. 

Yeah, that's it.  I was missing the fact that the lowercase letters in
the word "Subject" were causing everything to pass my filter.  Thanks
to everyone who pointed this out to me.

>I also use:
>/xref:.*:.*:.*:.*:.*:/Hxref:j
>to kill postings with lots of crossposts.

I look for a single comma in the Newsgroups line, and then nuke the
post and its followups.
/,/Hnewsgroups:,

Draconian, as it cuts out the wee bit of crossposted signal along with
tons of noise, but it's not like I don't have enough news to read.

Thanks again.

-- 
David Ripton    dripton@netcom.com
spamgard(tm): To email me, put "geek" in your Subject line.

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