🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by Ian T Zimmerman Sat, 03 Dec 1994 19:02
Help! - trn keeps returning articles
#13385
Author: Ian T Zimmerman
Date: Sat, 03 Dec 1994 19:02
17 lines
1260 bytes
In some newsgroups, I want to only read articles with specific subjects. 
So I have put the following in the killfiles for these groups:

/^/j
/foo/m
/bar/m

It works OK, except that trn seems _never_ to prepend a THRU line and so 
I keep getting month old articles on foo & bar back! what's the deal?

thanks, itz

-- 
Ian T Zimmerman            +-------------------------------------------+
P.O. Box 13445             I    With so many executioners available,   I
Berkeley, California 94712 I suicide is a really foolish thing to do.  I
USA  <itz@rahul.net>       +-------------------------------------------+
Re: Help! - trn keeps returning articles
#13405
Author: Goran Edvardsson
Date: Sun, 04 Dec 1994 00:56
24 lines
1678 bytes
In article <3bqfc7$p79@hustle.rahul.net>,
Ian T Zimmerman  <itz@rahul.net> wrote:
� In some newsgroups, I want to only read articles with specific subjects. 
� So I have put the following in the killfiles for these groups:
� 
� /^/j
� /foo/m
� /bar/m
� 
� It works OK, except that trn seems _never_ to prepend a THRU line and so 
� I keep getting month old articles on foo & bar back! what's the deal?
� 
� thanks, itz

Try starting with "trn +k" (or put "+k" in your trn-init-file):

>     -k   tells trn to  ignore  the  THRU  line  when  processing
>          selection  searches  (i.e. searches with a command por-
>          tion that starts with a '+' or a '.') in the  memorized
>          commands  (aka  kill  files).   This  is  turned  on by
>          default, so use +k if you want to turn it off.
          ^^^^^^^^^
-- 
G�ran Edvardsson,  ge@inregia.se
Re: Help! - trn keeps returning articles
#13432
Author: Wayne Davison
Date: Sun, 04 Dec 1994 08:46
26 lines
1515 bytes
According to Ian T Zimmerman  <itz@rahul.net>:
> /^/j
> /foo/m
> /bar/m
> 
> It works OK, except that trn seems _never_ to prepend a THRU line and so 
> I keep getting month old articles on foo & bar back! what's the deal?

As mentioned in the command help, the 'm' command implies an 'r' modifier,
thus the commands are actually /foo/r:m and /bar/r:m -- both of which are
supposed to ignore the THRU line.

More importantly, you're trying to do something simple the hard way.
What you really want to be doing is this:

/foo/+
/bar/+
*X

This selects the items you're interested in and then (if you so desire)
the *X command tells trn to junk everything that isn't selected.  If you
leave it off you can read all of the selected articles first and then
browse through the remaining articles at your leisure.
-- 
Wayne Davison
davison@borland.com
Re: Help! - trn keeps returning articles
#13575
Author: Jon Bell
Date: Thu, 08 Dec 1994 12:30
17 lines
1352 bytes
 Wayne Davison <davison@borland.com> wrote:
>/foo/+
>/bar/+
>*X
>
>This selects the items you're interested in and then (if you so desire)
>the *X command tells trn to junk everything that isn't selected.

My copy of trn 3.6 behaves differently from trn 3.5 in this respect.  In 
3.5 the articles containing "foo" and "bar" were actually selected; in 
3.6, they're not.  The other articles get junked OK, so that the thread 
selector contains only articles about "foo" and "bar", but those articles 
aren't actually selected.

-- 
Jon Bell <jtbell@presby.edu>                        Presbyterian College
Dept. of Physics and Computer Science        Clinton, South Carolina USA
Re: Help! - trn keeps returning articles
#13601
Author: Wayne Davison
Date: Fri, 09 Dec 1994 01:43
14 lines
1325 bytes
According to Jon Bell <jtbell@presby.edu>:
> In 3.5 the articles containing "foo" and "bar" were actually selected; in 
> 3.6, they're not.  The other articles get junked OK, so that the thread 
> selector contains only articles about "foo" and "bar", but those articles 
> aren't actually selected.

Right, that's a new feature.  Since you just killed all non-selected
articles there's no need to keep them selected.  If you just want to
read them, press TAB (or 'Z').  Otherwise it is now easier to browse
through the remaining articles and select only the ones you *really*
want to read.
-- 
Wayne Davison
davison@borland.com
Re: Help! - trn keeps returning articles
#13626
Author: Ian T Zimmerman
Date: Sat, 10 Dec 1994 03:26
49 lines
2960 bytes
In article <D0Hs2M.3Ev@presby.edu>, Jon Bell <jtbell@presby.edu> wrote:
> Wayne Davison <davison@borland.com> wrote:
>>/foo/+
>>/bar/+
>>*X
>>
>>This selects the items you're interested in and then (if you so desire)
>>the *X command tells trn to junk everything that isn't selected.
>

No! No! I explained this here before. I don't necessarily want to read 
everything about foo and bar. I am just sure I don't want to see articles 
about anything else.

 -------------------------    ----------------------------
/                         \  /                            \
|        FOO articles      \          BAR articles        |
|                        /  \                             |
|                       /    \                            |
|                       |    |                            |
|              ---------------------------                |
|             /         |    |             \              |
|             |       Interesting articles  |             |
|             |         |    |              |             |
|              \        |    |             /              |
|                -------------------------                |
|                       |    |                            |
|                        \  /                             |
|                         /\                              |
 \                      /    \                           /
  ----------------------       --------------------------

OK?

> behaves differently from trn 3.5 in this respect.  In 
>3.5 the articles containing "foo" and "bar" were actually selected; in 
>3.6, they're not.  The other articles get junked OK, so that the thread 
>selector contains only articles about "foo" and "bar", but those articles 
>aren't actually selected.
>

Well, it seems like the /foo/+ command in 3.6 does exactly what I want. 
But I am stuck with 3.3 :-(

-- 
Ian T Zimmerman            +-------------------------------------------+
P.O. Box 13445             I    With so many executioners available,   I
Berkeley, California 94712 I suicide is a really foolish thing to do.  I
USA  <itz@rahul.net>       +-------------------------------------------+
Re: Help! - trn keeps returning articles
#13632
Author: Ian T Zimmerman
Date: Sat, 10 Dec 1994 04:49
58 lines
3225 bytes
In article <3cb75i$6o0@hustle.rahul.net>,
Ian T Zimmerman  <itz@rahul.net> wrote:
>In article <D0Hs2M.3Ev@presby.edu>, Jon Bell <jtbell@presby.edu> wrote:
>> Wayne Davison <davison@borland.com> wrote:
>>>/foo/+
>>>/bar/+
>>>*X
>>>
>>>This selects the items you're interested in and then (if you so desire)
>>>the *X command tells trn to junk everything that isn't selected.
>>
>
>No! No! I explained this here before. I don't necessarily want to read 
>everything about foo and bar. I am just sure I don't want to see articles 
>about anything else.
>
> -------------------------    ----------------------------
>/                         \  /                            \
>|        FOO articles      \          BAR articles        |
>|                        /  \                             |
>|                       /    \                            |
>|                       |    |                            |
>|              ---------------------------                |
>|             /         |    |             \              |
>|             |       Interesting articles  |             |
>|             |         |    |              |             |
>|              \        |    |             /              |
>|                -------------------------                |
>|                       |    |                            |
>|                        \  /                             |
>|                         /\                              |
> \                      /    \                           /
>  ----------------------       --------------------------
>
>OK?
>

Sorry for my somewhat high-strung note in the quote. I believe the 
toughest thing for heretics must have been to _explain_ their heresy :-)
Anyway, I noted that the help page says r modifier is implied only if 
[mM] is the _first_ command of the kill line. Thus the following hack

/foo/-:M
/bar/-:M
/^/j

which seems to work! At last! 

BTW, what is this strange *X syntax? No mention of it in the manpage, and 
it doesn't seem to work with my version (3.3). Is that something added 
between 3.3 and 3.6?

cheers, itz.
-- 
Ian T Zimmerman            +-------------------------------------------+
P.O. Box 13445             I    With so many executioners available,   I
Berkeley, California 94712 I suicide is a really foolish thing to do.  I
USA  <itz@rahul.net>       +-------------------------------------------+
Trn killfiles and *X
#13651
Author: Wayne Davison
Date: Sat, 10 Dec 1994 19:10
19 lines
1634 bytes
According to Ian T Zimmerman  <itz@rahul.net>:
> BTW, what is this strange *X syntax? No mention of it in the manpage, and 
> it doesn't seem to work with my version (3.3). Is that something added 
> between 3.3 and 3.6?

Yup, it's in the manpage if you can convince whomever installs trn there
to grab a recent version.  Version 3.3 is pretty old.

Trn added a couple '*' commands to kill files to make it easier to do
certain article-killing things.  One such command is *j which junks all
of the unread articles, and the other is *X which junks all but the
selected articles.  I'm beginning to think that I should have added a
*- command to trn 3.6 so that people such as yourself could unselect
the remaining articles after *X did its work instead of having it be
the default, but it's not that hard to press the tab key to start
reading instead of hitting return.
-- 
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