🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by Walter Dnes Tue, 04 Apr 2000 00:00
How to keep read messages visible?
#60123
Author: Walter Dnes
Date: Tue, 04 Apr 2000 00:00
12 lines
1186 bytes
  This may be a personal thing, but I like to have all available
read messages in a thread visible.  Obviously marked with "D"
and/or colour-coded to indicate they've been read.  This helps
me tie a thread together mentally.  Something more automatic
than manually rebuilding the thread with escape sequences.


-- 
Walter Dnes <waltdnes@waltdnes.org> SpamDunk Project procmail spamfilter
at http://www.waltdnes.org   This message coming to you in living Linux.

Re: How to keep read messages visible?
#60251
Author: Ralf Arens
Date: Thu, 06 Apr 2000 00:00
22 lines
1080 bytes
Walter Dnes <waltdnes@waltdnes.org> wrote:

>   This may be a personal thing,

... but you shouldn't keep personal for which newsreader you're
seeking informations. I assume it's slrn since you're posting with it.

> but I like to have all available read messages in a thread visible.
[...]

Enter newsgroups with "<Esc>1<Enter>"


Ciao,
Ralf

-- 
Remember men you are fighting for the lady's honor,
which is probably more than she ever did.
-- Groucho Marx

Re: [slrn] How to keep read messages visible?
#60337
Author: Dawn Owens-Nicholson
Date: Mon, 10 Apr 2000 00:00
39 lines
2386 bytes
Walter Dnes wrote:
> [M]y final goal is to display only threads with new messages, i.e. those
> which show up with a "%" flag, rather than a "D" flag.

Considering you could be missing a lot of articles, I'm curious to know why
you'd want to this?  You'd effectively *kill* articles scoring below
max_low_score.  Put differently, you'd no longer be able to score an article
as 'marked as read' because by the time you see the header list those
articles would be gone.

Anyhow, to do this, you could change all your 'mark as read' scores to kill
scores or you could use a macro.  Fortunately for you this macro is a
one-liner:

  call ("art_xpunge");

art_xpunge removes the articles marked read from the header list.  It's
bound to 'x' by default.  Put that in an article_mode_hook() and you won't
see any read articles in the list when you first enter article mode.  If
you don't already have an article_mode_hook() or don't know what one is,
make a file (say, "my_hooks.sl") in your homedir with this in it:

  public define article_mode_hook ()
  {
     call ("art_xpunge");
  }

and load it from your slrnrc by adding this line to your slrnrc:

  interpret "my_hooks.sl"

then quit and restart slrn.

If you've already got an article_mode_hook() be careful where you put that
art_xpunge line--put it in the wrong place and you could unnecessarily
lengthen the time it takes to enter a group or you might break some macro
which depends on some articles being in the header list.

Re: [slrn] How to keep read messages visible?
#60340
Author: Dawn Owens-Nicholson
Date: Mon, 10 Apr 2000 00:00
12 lines
1429 bytes
Walter Dnes wrote:
> [M]y final goal is to display only threads with new messages, i.e. those
> which show up with a "%" flag, rather than a "D" flag.

I'm not sure if I understand what you want to do.  Do you want to remove
articles marked read when you first enter a group so all you're left with
are articles marked unread?  Or do you want to do something to the threads
with both read and unread articles?  Or maybe I'm missing the point
entirely. If it's the second one, what exactly do you want to do and to what
articles do you want to do this?

Re: [slrn] How to keep read messages visible?
#60345
Author: Walter Dnes
Date: Mon, 10 Apr 2000 00:00
21 lines
1587 bytes
On Thu, 6 Apr 2000 16:40:40 +0200, Ralf Arens,
<ralf.arens@tu-clausthal.de> wrote:
> Walter Dnes <waltdnes@waltdnes.org> wrote:
> 
> ... but you shouldn't keep personal for which newsreader you're
> seeking informations. I assume it's slrn since you're posting with it.
  Oops, sorry.  Subject modified appropriately.
 
> > but I like to have all available read messages in a thread visible.
> [...]
> 
> Enter newsgroups with "<Esc>1<Enter>"
  Thanks, that works.  This may sound picky, but my final goal is to
display only threads with new messages, i.e. those which show up with
a "%" flag, rather than a "D" flag.

-- 
Walter Dnes <waltdnes@waltdnes.org> SpamDunk Project procmail spamfilter
at http://www.waltdnes.org   This message coming to you in living Linux.

Re: [slrn] How to keep read messages visible?
#60447
Author: Walter Dnes
Date: Thu, 13 Apr 2000 00:00
52 lines
2851 bytes
On Mon, 10 Apr 2000 06:44:04 GMT, Dawn Owens-Nicholson,
<bluemoon@ux6.cso.uiuc.edu> wrote:
> Walter Dnes wrote:
> > [M]y final goal is to display only threads with new messages, i.e. those
> > which show up with a "%" flag, rather than a "D" flag.
> 
> Considering you could be missing a lot of articles, I'm curious to know why
> you'd want to this?  You'd effectively *kill* articles scoring below
> max_low_score.  Put differently, you'd no longer be able to score an article
> as 'marked as read' because by the time you see the header list those
> articles would be gone.
> 
> Anyhow, to do this, you could change all your 'mark as read' scores to kill
> scores or you could use a macro.  Fortunately for you this macro is a
> one-liner:
  [...snip instructions...]
  First of all, thanks for the lucid example of how to set up a macro.
It's always difficult the first time without an example.  In response to this,
and your next posting, here's what I'm trying to do...

  Monday, a new thread shows up...
    Joe Blow    Scientific discovery... 1 + 1 = 2
    John Smith  |_
    John Doe    | |_
    Susie Q     |_

  I read all the articles, which are marked "D".

  Tuesday, I run slrnpull, and there are no new articles in the thread.
I do not want to see the thread.

  Wednesday, I run slrnpull, and there is one new article.  In the
collapsed threadview I'd like to see
    Mr Math     Re: Scientific discovery... 1 + 1 = 2

 In the expanded view, I'd like to see...

 D  Joe Blow    Scientific discovery... 1 + 1 = 2
 D  John Smith  |_
 D  John Doe    | |_
    Mr Math     |   |_
 D  Susie Q     |_

  And pushing the envelope, maybe have "Mr Math" highlighted in a
different colour to indicate that the article isn't read, rather than
merely not having a "D" flag.

-- 
Walter Dnes <waltdnes@waltdnes.org> SpamDunk Project procmail spamfilter
at http://www.waltdnes.org   This message coming to you in living Linux.

Re: [slrn] How to keep read messages visible?
#60515
Author: Dawn Owens-Nicholson
Date: Fri, 14 Apr 2000 00:00
116 lines
6266 bytes
Walter Dnes wrote:
>   Monday, a new thread shows up...
>     Joe Blow    Scientific discovery... 1 + 1 = 2
>     John Smith  |_
>     John Doe    | |_
>     Susie Q     |_
> 
>   I read all the articles, which are marked "D".

So far, this is what slrn will do by default (assuming you have
auto_mark_article_as_read set to non-zero or you mark them read yourself).

>   Tuesday, I run slrnpull, and there are no new articles in the thread.
> I do not want to see the thread.

You are still totally within slrn's default state (as long as you don't
explicitly request to see old articles).

>   Wednesday, I run slrnpull, and there is one new article.  In the
> collapsed threadview I'd like to see
>     Mr Math     Re: Scientific discovery... 1 + 1 = 2

*Now* I see what you're getting at and my answer is: you can't do that in an
efficient way with macros.  It can be done, but it would involve two things:

 (1) Not seeing collapsed threads as collapsed threads--slrn won't show a
     collapsed thread with the topmost unread article as though it were the
     head of the thread.  You might already be familiar with what slrn would
     show you:

        %  Joe Blow    Scientific discovery... 1 + 1 = 2

     with the percent sign indicating "not all the articles in this thread
     have been marked read".  You may see a collapsed thread, depending on
     how many articles remain unread in the thread when you collapse it. If
     you want to see 5 as the thread count for this collapsed thread, it
     won't work that way.  If you want to see 1, you'll be okay.

 (2) A lot of parent & child article fetches and (depending on how much you
     want this change to be seamlessly integrated into slrn via macros) a
     lot of intrinsic wrappers.  Intrinsic wrappers are almost always a
     hassle to integrate into other macros later on.

>  In the expanded view, I'd like to see...
> 
>  D  Joe Blow    Scientific discovery... 1 + 1 = 2
>  D  John Smith  |_
>  D  John Doe    | |_
>     Mr Math     |   |_
>  D  Susie Q     |_

If you would like this, it can be done in a somewhat half-baked way that
won't be too slow to use because you get your news via slrnpull and a local
spool.  To do it, wrap the collapse and uncollapse intrinsics so when you
collapse the thread you:

  (1) Store a list of all the articles marked read in some variable.
  (2) Mark the entire group unread except for the articles in the
      thread to be collapsed.  It's faster to mark everything unread
      and mark read the articles you didn't want to change.
  (3) Expunge the thread articles (thus deleting only the articles
      marked read at the time you collapsed the thread).
  (4) Collapse the thread.
  (5) Mark read all the articles in the list you made in step 1.
  (6) Put the cursor back where it was when you started Mr. Toad's Wild
      Ride.

and when you uncollapse a thread you get all the articles in that thread
including read parents & children.

Steps 1, 2, 3 and 5 (basically, the whole macro) will not scale well.  It'll
run more slowly as the number of articles in the group increases.  Steps 1
and 5 will definately slow down the entire job.  Unless you're running slrn
on a very fast machine, you probably won't want to do this this way.

>   And pushing the envelope, maybe have "Mr Math" highlighted in a
> different colour to indicate that the article isn't read, rather than
> merely not having a "D" flag.

If unread articles can be colored, which I can't recall off the top of my
head, this might be possible.  It won't be possible to color this article
differently from any other article with the same status in that group
because slrn doesn't allow custom per-article coloring like that.

As I've said before: there are times when it's better to either learn the
slrn way or modify the source to get what you want done.

Here is a short list of things you might want to change to make your wishes
feasible via a macro (that you won't have to update with each new version of
slrn):

  * A hook to run anytime a thread is collapsed or uncollapsed (explicitly
    or implicitly).

  * A way to expunge a single article regardless of its read status.  This
    is something that a bunch of macros could use.  Maybe this could be a
    prefix argument to the expunge intrinsic?

  * Somehow let the user see thread displays that only show the unread
    articles even though info for some of the read articles in the thread
    are still in memory and ready to be shown at any time.

Personally, I don't think it's worth it.  I read news frequently enough that
I don't mind getting parent or child articles ad-hoc and most threads most
of the time aren't so deep I need lots of thread history.  On the other
hand, this project raises some things that would be nice to have: expunging
a single article would be handy sometimes and hooks are a more portable
approach to doing just about anything in slrn with macros.

I'm hitting the macro angle pretty hard because I enjoy the lack of
re-patching and re-updating I have to do to enjoy the features I've added to
my slrn.  For me most of the time, slrn's S-Lang API is all I need.

Good luck.

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