🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Denis McKeon Thu, 18 Aug 1994 13:52
Re: TRN killfile question
#10896
Author: Denis McKeon
Date: Thu, 18 Aug 1994 13:52
57 lines
2682 bytes
In <CuqqxB.8Cr@murdoch.acc.virginia.edu>,
David Strauss <dss2k@poe.acc.Virginia.EDU> wrote:
>
>Okay, this is what I want to do with TRN.
>
>One of the newsgroups I read has gotten way too big.  I'd like
>to ONLY read the posts by 20 or so folks.
>
>My original idea was to junk every post in the group, and then
>mark as unread all the posts containing these people's names in
>the header. (/name/h:m)

I have been handling this sort of thing with a sequence of:

    Mark
    Junk (or Catch-up)
    Yank

Thusly:

    in command file:

	/desired/I:M:=
	/unwanted/:j:=

    at selector:

	Y                   # Yanking back auto-selects articles
	:++                 # select other articles in thread(s)
			    # this part can be made a macro:

# Yank back articles marked by Killfile, call (+) selector, 
y       %(%m=[t]?Y\:++\nE:%(%m=[ap]?+Y\:++\nE:%(%m=[e]?Y+@E:y)))


While I was trying to get this figured out (and suggestions of
better methods are certainly welcome) I was pretty surprised 
to discover that junking overrides selection, that is:

	/desired/++
	/unwanted/:j:=      

might select some articles, and then junk articles,
*included ones which were already selected*.

I assume that that is an artifact from the days of 'rn' - and with 
the net.volume as it is, one could argue that it is a feature :-)

Other that a few small things like that, I'm thrilled with trn - 
but of course I'd like more - the expansion of capability in 
command (no longer just 'kill') files is great - I wonder if
more existing commands could be parsed in the command file, e.g.:

    /desired/++
    :M                      # mark selected articles
    /unwanted/:j:=
    :Y                      # yank them back
Re: TRN killfile question
#10935
Author: eddy Gorsuch
Date: Fri, 19 Aug 1994 16:54
36 lines
2394 bytes
In article <330e7m$lj0@lynx.unm.edu>,
Denis McKeon <galway@chtm.eece.unm.edu> wrote:
>In <CuqqxB.8Cr@murdoch.acc.virginia.edu>,
>David Strauss <dss2k@poe.acc.Virginia.EDU> wrote:
>>
>>Okay, this is what I want to do with TRN.
>>
>>One of the newsgroups I read has gotten way too big.  I'd like
>>to ONLY read the posts by 20 or so folks.
>>
>>My original idea was to junk every post in the group, and then
>>mark as unread all the posts containing these people's names in
>>the header. (/name/h:m)

The way I do this (with TRN v3.5- I don't know about earlier versions)
is something like the following killfile:
  /name/HFrom:.
  /AnotherName/HFrom:.
  *X

The first 2 lines select unread articles that match certain names. The
*X at the end junks all unselected articles. I got this from the
KillFile FAQ.

_My_ only drawback with this is that I'm really using that killfile to
junk all articles that don't have certain words in the body, but then I
only want to read some of the remaining ones. That killfile leaves
every article selected, so I have to unselect the articles I don't want
to read (which feels backwards to me).

eddy
-- 
ed.dy \'ed-e-\ n [ME (Sc dial.) ydy, prob. fr. ON itha; akin to OHG ith- 
   again], L et and 1a: a current of water or air running contrary to the main 
   current; esp)X : a small whirlpool 1b: a substance moving similarly  2: a 
   contrary or circular current  - eddy vb
Re: TRN killfile question
#10939
Author: Wayne Davison
Date: Fri, 19 Aug 1994 23:12
26 lines
1724 bytes
According to eddy Gorsuch <eddy@clipper.robadome.com>:
> _My_ only drawback with this is that I'm really using that killfile to
> junk all articles that don't have certain words in the body, but then I
> only want to read some of the remaining ones. That killfile leaves
> every article selected, so I have to unselect the articles I don't want
> to read (which feels backwards to me).

A good point.  I don't actually use this myself, but I think that I
would feel the same way and would argue that *X should deselect the
selected articles since it is junking all the unselected ones.  I
believe the following patch should fix this:

Index:kfile.c
@@ -213,4 +213,9 @@
 		    if (!(ap->flags & killmask))
 			set_read(ap);
+		    else if (ap->flags & sel_mask) {
+			ap->flags &= ~sel_mask;
+			if (!selected_count--)
+			    selected_count = 0;
+		    }
 		}
 		break;
-- 
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