🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Stephen A. Creps Tue, 13 Jul 1993 16:50
trn 3.0 kill file change?
#4898
Author: Stephen A. Creps
Date: Tue, 13 Jul 1993 16:50
39 lines
2227 bytes
   I recently switched from trn 2.4 to trn 3.0, and noticed a change in
the behavior of my kill files.  In many of my kill files I wish to kill
*everything but* articles containing a selection of keywords.  For
example, in one group let's say I wish to read only articles containing
"pat1", "pat2", or "pat3".  The kill file for this group was this:

THRU nnnn
/pat1/a:=:M
/pat2/a:=:M
/pat3/a:=:M
/^/:j


   What would happen in the older verion of trn is that it would scan
through the articles, match anything with the above patterns, and mark
them.  Then it would junk everything left (with one exception; see
below).

  If I were to exit the group and return to it the articles that got
marked would be there waiting for me to read them.

  Now with 3.0 it goes through the articles, marks the appropriate ones,
and junks the rest.  *However*, when I return to the group it repeats
the process, except that it doesn't match any of the articles that were
matched before.  But what it does do is *junk* all the articles that had
been matched before.

   What I think is happening is that when goes through the kill file it
examines the "THRU nnnn" line, and only scans articles numbered greater
than nnnn.  However, for some reason, when it scans that "/^/:j" line it
ignores the THRU line.  The older version would honor the THRU line on
all the lines in my kill file.

   Is this a bug, a feature, a configuration problem, or a user error?

-	-	-	-	-	-	-	-	-	-
Steve Creps, Indiana University
creps@lateran.ucs.indiana.edu
Re: trn 3.0 kill file change?
#4900
Author: Stephen A. Creps
Date: Tue, 13 Jul 1993 17:06
21 lines
1847 bytes
   OK, I found a file called NEW, which I could swear was not there when
I was looking for information before:

   o    KILL file processing will now ignore the THRU line as much as
        possible without slowing down the handling of KILL files.
        If you have really slow searches (header or article searches)
        or you use trn without a database it will use the THRU line
        to only search an article one time (as it would in rn).  This
        means that if you have subject-oriented selection commands you
        don't have to worry about missing articles if you don't read all
        of them the first time you enter a group after they arrive.  This
        also means that you won't have to edit your local kill file to
        remove the THRU line to force a re-scan -- this is now unnecessary.

   However, this only tells me why I'm getting the problem I am.  It
doesn't tell me how to fix it.  How do I get my kill file to work the
way it used to?

-	-	-	-	-	-	-	-	-	-
Steve Creps, Indiana University
creps@lateran.ucs.indiana.edu
Re: trn 3.0 kill file change?
#4905
Author: Jack Coyote
Date: Tue, 13 Jul 1993 17:33
14 lines
1128 bytes
If you are using trn 3.0, I assume you are threading.  Try the following:

In KILL file:

  /pat1/a:+
  /pat2/a:+
etc.

And simply use "X" when you enter the group to kill all non-selected articles.

Jack Coyote 

-- 
No, really.  I'm not a policeman, I'm an astrophysicist.     -- Liquid Sky
Re: trn 3.0 kill file change?
#4903
Author: Wayne Davison
Date: Tue, 13 Jul 1993 18:42
45 lines
2459 bytes
According to Stephen A. Creps <creps@lateran.ucs.indiana.edu>:
> THRU nnnn
> /pat1/a:=:M
> /pat2/a:=:M
> /pat3/a:=:M
> /^/:j

An interesting situation, since, as you discovered, the 'a's honor the
THRU line (since they are a very slow search) while the 'j' command does
not.  Trn 3.1 will have a killfile extension that would let you write the
last line as simply:

*j

which tells trn to kill all articles from THRU to the end of the group.
It will also allow you to specify:

*X

which will kill all _unselected_ articles from THRU to the end of the group
(which saves you from having to type 'X' in the selector).

Also, here's a variation of the selection approach suggested by Jack.  NOTE:
selections work in both threaded and unthreaded groups now.  This approach
marks the article(s) and their immediate replies as selected, saving the
selections (by message-id) in the memorized commands (a.k.a. kill file) for
the group:

/pat1/a:T.
/pat2/a:T.
/pat3/a:T.
*X       <-- trn 3.1 only (available soon).

This way the articles we found with a matching pattern are always selected
on entry to the group, even if you don't read them all.  The only side-effect
is that their replies are also selected (there is no mark-just-one-article-
and-remember-it command in a kill file).  However, if the group is not
threaded only the one article will be selected since unthreaded groups
don't have attached replies.  So, you might want to toggle this one group
into unthreaded behavior with the 't' command at the newsgroup level
and use the above selection lines to process it.  You'll have to type
the 'X' command manually in the selector to dispose of the extra articles
until 3.1 arrives, though, but that's not too annoying.

.wayne..
Re: trn 3.0 kill file change?
#4925
Author: Stephen A. Creps
Date: Wed, 14 Jul 1993 16:55
30 lines
1684 bytes
   Thanks for the quick responses to my article.  I too was able to
find a way to get the kill files in question to work the way they had
before.  This (what I used in 2.4) didn't work:

THRU nnnn
/pat1/a:=:M
/pat2/a:=:M
/pat3/a:=:M
/^/:j

   However, this did work:

THRU nnnn
/pat1/a:=:M
/pat2/a:=:M
/pat3/a:=:M
/^/a:j

  The "a" on the last line doesn't affect what is being matched, since
obviously if you're going to match an article with anything for a
subject, you're also going to match an article containing any line.  But
it does have the desired effect of honoring the THRU line.

  The other proposed solutions posted here look useful for when I get
the time to learn how to use all the thread selection functionality.
Something I've been meaning to do...

-	-	-	-	-	-	-	-	-	-
Steve Creps, Indiana University
creps@lateran.ucs.indiana.edu
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