🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #41171

High bandwidth slrn macros (was: Re: 3 wishes for slrn (linux))

#41171
From: Dawn Owens-Nicholson
Date: Tue, 26 May 1998 00:00
111 lines
6058 bytes
Morten Ranheim <moranhei@online.no> wrote:
> Sorry for not including my score file. Well, here it is:

After this comment, I'll skip the scorefile issue because others have
dealt with it.  I too don't understand why you want to score your own
posts high (I'd think one would want to kill them, if anything; I'd
imagine you know what you wrote and slrn can keep a personal archive
of your posts and e-mail generated from within slrn with slrnrc
settings).

> This gets interesting. Allthough I can't see the result from what I
> want with this, but I got a feeling we are on some sort of a track here.

This won't do the three-state article marking you want.  To do that
would take either significant modification of the slrn source code or
an (in my opinion) unreasonably long and complex macro (which would
only get you close to what you want).  I'm not trying to be mean here,
it's just that newsreaders don't normally treat articles as anything
but read or unread.  How, exactly, you would make such slrn code
changes (or such a macro) is beyond the scope of what I want to
address here.

> I find this way to uneffectivly. Why not get all articles "shown"
> after reading it with a 'R' mark. And if you want if deleted why not add
> a function so it can be deleted?

Because there is usually no reason to look at an article once you have
read it.  One-pass newsreading is the norm.  There's usually no reason
for something you've dealt with to use valuable screen real estate in
a header listing (I'd imagine something similar explains why one
doesn't normally see unsubscribed newsgroups in newsreaders).

If you really want old articles, Dejanews (http://www.dejanews.com) is
a popular Usenet archive where you have equal access to all the
articles in their archive (whether you've read them before or not).

> Well, my experience in writing macros in general, is very very
> limited. I really don't know how to do it! :(

Check out slrn's doc/README.macros and S-Lang's doc/text/slang.txt for
info on slrn's S-Lang API and S-Lang programming, respectively.

> Hmm.. Why should it be so hard to a new "feature"?

It's not hard to do, it is a heavy bandwidth macro and, therefore, not
something that every slrn user can use with equal ease[2].  Retrieving
the same thing from the server multiple times and downloading lots of
data the user probably won't use is unwise on slow links (like SLIP or
PPP).  If you want more details, I recommend reading the NNTP RFC and
common NNTP extensions document (both available from
http://www.academ.com, I believe) to learn just what happens when you
request to read an article with a Usenet newsreader.

To get you started on designing and coding: to do this the way you
want, you'll probably:

  * use the startup_hook() (your macro will probably be called
    from or reside mostly here),

  * use the group_mode_hook() so exiting from article mode back to
    group mode can update the findings and (if you want) keep the
    group list sorted correctly,

  * make a couple of macros for the up and down keys (or whatever
    you use to move from one group to the next) so the status
    line is updated with the stats about the current group, and

  * store the findings in a global linked list.

But as I said before, you might want to wait for virtual groups.

> And using a 28.8 modem wouldn't make things slow really. It all
> bottoms down to how many groups you're "added" to. I'm using a 64k
> ISDN line and find efficiently enough.

Downloading overview data for 20 groups or more[1] on a 28.8 modem
wouldn't be bad if the user didn't have to wait while this was going
on.  However, in my opinion, it's hard to justify this for something
you can ultimately see as you enter each group.  But, since you've got
all the tools you need to make a macro to do this, feel free to learn
S-Lang and write the macro.  Maybe someday slrn will cache header data
and be multithreaded, then this macro could take advantage of
preloaded cache data.

I just thought of a small enhancement you can add: sort the newsgroups
by the number of unread followups to your articles so the top group
contains the most such articles and the last group the least.  If
there are no such articles in any subscribed groups, leave the
newsgroup order alone (i.e., in newsrc order).  The pointer should be
left at the top newsgroup if and only if there is a group with at
least 1 unread followup to your article.

Happy macro writing!


[1] I don't have any source for this figure, I made it up.  It sounds
    like a reasonable guess for the average number of subscribed
    newsgroups for a slrn user.  The exact figure isn't as important
    as that the number is larger than some small counting number like
    5.

[2] Compare with downloading the active file for users on fast links.
    Downloading group data by issuing many NNTP GROUP requests is 
    noticeably slower on my fast link than downloading the active
    file even though my server's active file is much larger than the
    total amount of data I'd download from GROUP requests.  Put
    differently; the active file switch (or slrnrc setting) is an
    efficiency issue, this macro is not.

Technical Details
Message-ID: <slrn6mkdr5.8a5.bluemoon@ux6.cso.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <6k1clf$7q2$2@o.online.no> <slrn6m8k0v.64o.bluemoon@ux6.cso.uiuc.edu> <6k1p8i$hfe$1@o.online.no> <slrn6m959b.8ak.bluemoon@ux6.cso.uiuc.edu> <6k4ukr$a5o$2@o.online.no>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6mkdr5.8a5.bluemoon@ux6.cso.uiuc.edu>
Subject: High bandwidth slrn macros (was: Re: 3 wishes for slrn (linux))
Date: Tue, 26 May 1998 00:00:00 +0000
From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson)
References: <6k1clf$7q2$2@o.online.no> <slrn6m8k0v.64o.bluemoon@ux6.cso.uiuc.edu> <6k1p8i$hfe$1@o.online.no> <slrn6m959b.8ak.bluemoon@ux6.cso.uiuc.edu> <6k4ukr$a5o$2@o.online.no>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 356524393
Organization: University of Illinois at Urbana-Champaign
Newsgroups: news.software.readers