🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by A. Chris Long Jr. Wed, 23 Feb 1994 01:57
Trouble with killfiles in trn
#7799
Author: A. Chris Long Jr.
Date: Wed, 23 Feb 1994 01:57
31 lines
1815 bytes
I'm probably doing something dumb, or missing something really simple,
but if someone could just point it out to me I'd really appreciate it.

What I want is to kill all articles with the string '[Mac' in the
Subject line.  I tried the following lines in my killfile

	/.*\[Mac.*/:j
	/\[Mac/:j

but it did not kill several articles I thought it would, including one
with the following Subject line:

Subject: [Mac] File Transfer Problems with Fetch

When I used grep to find the above pattern in this file, it matched
the Subject line.  But trn doesn't.  I looked at the trn man page, and
according to it, the above pattern should match the above Subject
line.

I also checked out the FAQ for this group (at rtfm.mit.edu), but it
wasn't helpful.

Any help with this would be greatly appreciated.  Thanks.

- Chris

-- 
A. Chris Long, Jr.		 |"Certainly the game is rigged.  Don't
Graduate Serf^H^H^H^HStudent     | let that stop you; if you don't bet,
Internet: allanl@cs.berkeley.edu | you can't win."  - Lazarus Long
Phone:	  (510) 845-0582	 | (Heinlein, _Time_Enough_for_Love_)
Re: Trouble with killfiles in trn
#7800
Author: Wayne Davison
Date: Wed, 23 Feb 1994 04:35
22 lines
1584 bytes
According to A. Chris Long  Jr. <allanl@anaconda.CS.Berkeley.EDU>:
> What I want is to kill all articles with the string '[Mac' in the
> Subject line.  I tried the following lines in my killfile
> 
> 	/.*\[Mac.*/:j
> 	/\[Mac/:j

The latter line is almost correct.  If you want case to be significant
(you're using "Mac") then you need the 'c' modifier.  As for why it didn't
match an article with [Mac] in the subject, I can only speculate that
you were fiddling with the kill file and the THRU line was pointing
past the article in question.  Either use the ignore-thru-line modifier
('I') or remove the THRU line from the kill file when you modify it
(note that you need a modern trn for the former ('I') to work -- 3.4.1
is the latest).  The corrected command might look like this:

	/\[Mac/Ic:j

If you're still having trouble, let me know.
-- 
Wayne Davison
davison@borland.com
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