🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by Dan Foster Sun, 16 Mar 2003 12:51
slrn: how to select certain threads?
#121892
Author: Dan Foster
Date: Sun, 16 Mar 2003 12:51
31 lines
2011 bytes
I'm a new slrn user, and like it a lot. I've managed to customize it to do
everything exactly as I want, except for one very crucial thing:

How do I select all threads with a certain subject line pattern, and read
only these selected threads?

With trn, it was simple:

$ trn
g news.software.readers
/slrn
<return>

(that would select all threads with 'slrn' in the subject line somewhere,
and allow me to start reading these posts.)

I really don't want to have to do a search for 'slrn', tag it, repeat
search, repeat tag, over and over until each thread has been tagged.

It becomes more of an issue in very large unread groups where I only want
to read a particular thread and other related articles, but not the rest of
the group's articles.

I also don't want to have to create a scorefile entry to do it as an
one-off on-the-fly thing.

I don't see a way to do it as easily based on the online slrn help. I'm
probably missing a technique or something. :) Any suggestions? Thanks!

-Dan
Re: slrn: how to select certain threads?
#121893
Author: SINNER
Date: Sun, 16 Mar 2003 13:19
51 lines
3082 bytes
While strolling through news.software.readers, Dan Foster was overheard plotting:
> I'm a new slrn user, and like it a lot. I've managed to customize it to do
> everything exactly as I want, except for one very crucial thing:
> 
> How do I select all threads with a certain subject line pattern, and read
> only these selected threads?

Install the nn/utils/temp-score macros

then you can just do

ESC  <----adjustable obviously

you can choose to score on refs, subject or body. This will not effect
the score file but it will  temporarily score articles and mark them
with a * you can then use '[' or ']' to read through them. The macros
should be installed with the original package but you need to interpret
them in your slrnrc, if you don't have them, they are available from the
slrn homepage http://slrn.sourceforge.net

> 
> With trn, it was simple:
> 
> $ trn
> g news.software.readers
> /slrn
><return>
> 
> (that would select all threads with 'slrn' in the subject line somewhere,
> and allow me to start reading these posts.)
> 
> I really don't want to have to do a search for 'slrn', tag it, repeat
> search, repeat tag, over and over until each thread has been tagged.
> 
> It becomes more of an issue in very large unread groups where I only want
> to read a particular thread and other related articles, but not the rest of
> the group's articles.
> 
> I also don't want to have to create a scorefile entry to do it as an
> one-off on-the-fly thing.
> 
> I don't see a way to do it as easily based on the online slrn help. I'm
> probably missing a technique or something. :) Any suggestions? Thanks!
> 
> -Dan

Yup, suggestion above should do it for ya, good luck!
-- 
David
You bet your fucking ass it was!
Re: slrn: how to select certain threads?
#121895
Author: Dan Foster
Date: Sun, 16 Mar 2003 14:32
49 lines
3050 bytes
In article <6o9ek-jua.ln1@news.gates_of_hell.INVALID>, SINNER <99nesorjd@gates_of_hell.INVALID> wrote:
>
> Install the nn/utils/temp-score macros
>
> then you can just do
>
> ESC  <----adjustable obviously
>
> you can choose to score on refs, subject or body. This will not effect
> the score file but it will  temporarily score articles and mark them
> with a * you can then use '[' or ']' to read through them. The macros
> should be installed with the original package but you need to interpret
> them in your slrnrc, if you don't have them, they are available from the
> slrn homepage http://slrn.sourceforge.net

Wow! Thanks!! That was *exactly* what I needed! Works great. Well, guess I
can now go and nuke that trn binary, no longer having any need for it ;)

trn wasn't bad, but wasn't maintained, and it had some serious bugs such as
BSD signal semantics on my SysV system which caused all sorts of "fun" such
as lost posts in certain situations, and its scoring just wasn't as good as
something built from the ground up with it in mind.

slrn is pretty slow to start up compared to trn which just zips in and out
the same groups *very* quickly -- but I've worked around that by running
slrn in a screen session and reattaching whenever I want to read news and
pressing 'g' ;) (although I do wish that slrn would auto-refresh its active
file periodically like trn did... but no big deal, 'g' isn't too bad.)

So, all considered, no more real reasons to keep trn.

And for anyone who does a Google search on this macro set, what I added
to my .slrnrc file was:

% load the macros!
interpret util.sl
interpret nn.sl
interpret temp-score.sl

% make thread searching work
setkey article TempScore->temp_score_newsgroup "\e^T"

(I also had to fetch temp-score.sl from the web site since it didn't come
with my 0.9.7.4pl2 source tree for some odd reason... oh well, no big deal)

Thanks again!!

-Dan
Re: slrn: how to select certain threads?
#121937
Author: J.B. Nicholson-Owens
Date: Mon, 17 Mar 2003 09:37
22 lines
1983 bytes
Dan Foster wrote:
> slrn is pretty slow to start up compared to trn which just zips in and out
> the same groups *very* quickly

Perhaps trn maintains more state between sessions than slrn does.  slrn
maintains a minimum of state--just the newsrc--so anything you read comes
from either a news server or a proxy.

> although I do wish that slrn would auto-refresh its active
> file periodically like trn did...

I don't think this is a good idea because if you're not there to read the
news, there's little point to maintaining a list of new news.  If you want
offline reading, check out slrnpull.  I used to be interested in being
notified on certain events (someone following up to a thread I'm interested
in, someone participating in a set of groups, etc.) but now I think there is
a better alternative to polling.

What trn features did you actually use?  I'm interested because I'm working
on an rn macro set for slrn in my spare time and I plan to extend it to
include trn functions.
Re: slrn: how to select certain threads?
#122029
Author: Dan Foster
Date: Tue, 18 Mar 2003 22:50
81 lines
5194 bytes
In article <slrnb7b7is.503.jbn@forestfield.org>, J.B. Nicholson-Owens <jbn@forestfield.org> wrote:
> Dan Foster wrote:
>> slrn is pretty slow to start up compared to trn which just zips in and out
>> the same groups *very* quickly
>
> Perhaps trn maintains more state between sessions than slrn does.  slrn
> maintains a minimum of state--just the newsrc--so anything you read comes
> from either a news server or a proxy.

So does trn -- only state it maintains is in the .newsrc file and a file to
indicate last read group and perhaps which article number...it's been a
while.

However, one notable difference is that trn maintains a list of only the
groups you've subscribed to (or ever subscribed to in the past, even if
unsubscribed now) versus slrn which keeps a list of every single group on
the server in the .newsrc.

Perhaps that accounts for some of the difference? Or more likely, the hooks
in slrn that performs scoring accounts for the delays (I haven't
stopwatched it but estimate it to be about the order of a magnitude slower).

Both trn and slrn in my configuration does XOVER to fetch the news overview
data, so they are equal in that aspect. Therefore I suspect the slrn delay
is probably solely scoring related. I haven't tried trn with the scoring
features because its code base seemed a little wobbly.

All considered, no big deal... screen + slrn was a big winner :-) And one I
can certainly live with!

>> although I do wish that slrn would auto-refresh its active
>> file periodically like trn did...
>
> I don't think this is a good idea because if you're not there to read the
> news, there's little point to maintaining a list of new news.  If you want

That's a good point; especially true for slow dialup links or if you're
paying for the per-packet bandwidth type of charges.

Still, I wish it was at least a configurable option that defaulted to
disabled but could be enabled for these folks who lives on fast pipes.
Or even as an add-on patch which is an explicit way of saying "If you want
it... ok, but your responsibility."

I don't know enough about slrn to submit a feature patch, but perhaps
eventually? I'm certainly not in a real good position to even submit a
feature request to the slrn developers until I become much more familiar
with slrn's capabilities and usage.

> offline reading, check out slrnpull.  I used to be interested in being
> notified on certain events (someone following up to a thread I'm interested
> in, someone participating in a set of groups, etc.) but now I think there is
> a better alternative to polling.

The groups I read are small enough that a periodic poll isn't an undue
burden -- even once a minute (a la trn) or two was great, because it takes
me a few minutes to read through current articles before I'm interested in
seeing if there's a fresh batch without having to interrupt my current
group reading session, exit to group list, hitting 'g' to refresh,
re-enter, etc.

> What trn features did you actually use?  I'm interested because I'm working
> on an rn macro set for slrn in my spare time and I plan to extend it to
> include trn functions.

Ah! Nice. Hrm... didn't really use much of the more exotic features;
usually just used navigation features. Used save to file in raw format,
in mbox format, save attachments, automatic MIME/Base64 processing, the
kill file options (junk on thread subject, on email address, etc), the
'catch-up feature' ('c' in trn, as it is in slrn), pattern-based newsgroup
searches for groups I might be interested in subbing to, dynamic
adding-to-killfile feature (^K in trn; K in slrn), selecting threads based
on an input regexp string (/ in trn at threads selector, and an add-on
script for slrn), marking and tagging articles -- read, unread, etc.

That's pretty much what I did with trn. Oddly enough, I never made a macro,
because I had never seen much any documentation on it, and the existing
trn commands seemed sufficient for my needs.

-Dan
Re: slrn: how to select certain threads?
#122049
Author: J.B. Nicholson-Owens
Date: Wed, 19 Mar 2003 05:37
38 lines
2900 bytes
Dan Foster wrote:
> So does trn -- only state it maintains is in the .newsrc file and a file
> to indicate last read group and perhaps which article number...it's been a
> while.

Are you instructing slrn to read the active file?  Grep your slrnrc for
"read_active" and see if it is set to 1.  That is a sure way for a
newsreader to eat up bandwidth on a slow link (or making more efficient use
of a fast link).  Changing that to 0 will make slrn issue many "GROUP"
requests for subscribed newsgroups which is much faster.  Running slrn with
-a is like setting read_active to 1 for that slrn session.

> However, one notable difference is that trn maintains a list of only the
> groups you've subscribed to (or ever subscribed to in the past, even if
> unsubscribed now) versus slrn which keeps a list of every single group on
> the server in the .newsrc.
> 
> Perhaps that accounts for some of the difference?

I doubt it, unless you are subscribed to so many newsgroups that there is
little difference between reading the active file and issuing NNTP GROUP
commands on all those newsgroups.  You can see exactly what slrn asked for
and received with slrn's debugging facility ("slrn --debug debug-file" then
quit slrn and read "debug-file").  Perhaps that file will give you a chance
to see where slrn is downloading a lot of data and thus taking such a long
time to do newsreading.

> Or more likely, the hooks in slrn that performs scoring accounts for the
> delays [...]

Without seeing your scorefile, I can't comment on how efficient it is.  Are
you scoring on headers not in the news overview?  Are you scoring with
regular expressions that are needlessly time-consuming to process?

> [I] didn't really use much of the more exotic features [in trn...]

Thanks for the feedback, I'll keep these in mind.
Re: slrn: how to select certain threads?
#122051
Author: Dan Foster
Date: Wed, 19 Mar 2003 11:06
50 lines
3359 bytes
In article <slrnb7g28s.7o4.jbn@forestfield.org>, J.B. Nicholson-Owens <jbn@forestfield.org> wrote:
>
> Are you instructing slrn to read the active file?  Grep your slrnrc for

Aye, read_active was set to 1.

> "read_active" and see if it is set to 1.  That is a sure way for a
> newsreader to eat up bandwidth on a slow link (or making more efficient use

Box is on the same fast ethernet network as the news server (which is my
baby for the last 7 years ;) ).

> of a fast link).  Changing that to 0 will make slrn issue many "GROUP"
> requests for subscribed newsgroups which is much faster.  Running slrn with

Ah! *That*, I didn't know (about slrn). I'll give it a shot.

If it's efficient in both cases for fast and slow links, I wonder why it's
even an option to read active file information at startup?

> I doubt it, unless you are subscribed to so many newsgroups that there is

Hmm, I'm usually subbed to about 3-4 groups, but sometimes subbed to as
many as 20, depending on interest.

> commands on all those newsgroups.  You can see exactly what slrn asked for
> and received with slrn's debugging facility ("slrn --debug debug-file" then
> quit slrn and read "debug-file").  Perhaps that file will give you a chance
> to see where slrn is downloading a lot of data and thus taking such a long
> time to do newsreading.

Ah! I'll give it a try, thanks.

> Without seeing your scorefile, I can't comment on how efficient it is.  Are
> you scoring on headers not in the news overview?  Are you scoring with
> regular expressions that are needlessly time-consuming to process?

Scoring solely only on overview data, aye. Wouldn't want to take the
mega-hit for doing it on anything else -- the disks are already spinning
hot and hard enough on the news server, as it is, and I can't bear to abuse
my little baby any further. ;)

Scoring based on exact pattern matches; no regexps, for efficiency and
speed reasons. Don't usually need regexps, anyway. (Nobody's been *that*
annoying...yet :-) )

Scorefile has only 68 rules; most of that is distributed over two newsgroups.

-Dan
Re: slrn: how to select certain threads?
#122053
Author: Dan Foster
Date: Wed, 19 Mar 2003 11:18
15 lines
1906 bytes
It appears that slrn is indeed faster than trn for downloading overview
data and scoring is negligble in my setup. That's a relief! (And good to
know.)

Looks like the big slowdown is only when it issues a NEWGROUPS command;
which I had explicitly disabled in trn, because I so rarely ever want to
refresh the group list, and most certainly, *NOT* at every startup!

I'm puzzled by the code path, though, because check_new_groups is set to
0 by default ("don't check") in slrnpull.c and is normally set to 1 only
if one of the slrn arguments has --new-groups... which I am most certainly
not doing. Sounds like a potential bug, perhaps?

-Dan
Re: slrn: how to select certain threads?
#122104
Author: Thomas Schultz
Date: Thu, 20 Mar 2003 19:08
26 lines
2224 bytes
* Dan Foster [2003-03-19 11:18] :

> I'm puzzled by the code path, though, because check_new_groups is set
> to 0 by default ("don't check") in slrnpull.c and is normally set to
> 1 only if one of the slrn arguments has --new-groups... which I am
> most certainly not doing. Sounds like a potential bug, perhaps?

Are you talking about slrn or slrnpull here? If it's slrn (the
newsreader), this config option is your friend:

,--- [ manual.txt ] ---
|   6.13.  check_new_groups
| 
|   Type: integer
|   Default: 1
| 
|   If you do not want to check for new groups on startup and when doing a
|   ``group refresh'' (by default bound to `G'), you can set this variable
|   to 0. This has the same effect as using the command-line parameter -n.
`---
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2002-03-13] slrn 0.9.7.4 is out
| Home of the slrn newsreader | [2002-02-03] Screenshot page online
| http://slrn.sourceforge.net | [2002-02-03] "Port" to Mac OS X
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