🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #239062

Re: [slrn] I'd like to, but...

#239062
From: Christian Ebert
Date: Mon, 11 Jan 2010 15:01
82 lines
4140 bytes
* Mike Yetto on Monday, January 11, 2010:
> Bada bing Christian Ebert <blacktrash@gmx.net> bada bang:

dada dada

>> The description should also contain the name of the server
>> command that is needed to *fully* reconstruct threads and e.g.
>> leafnode 1 doesn't provide (was to lazy to look it up yesterday).

XPAT

>> It still runs, albeit not with entire desired effect.
> 
> With or without that we will have the question popping up from
> several confused users.  At least with the answer in a standard
> spot we (tinw) will only need to remember the pointer, not the
> answer.

define "standard spot" - Seriously though, where would you like
this info?

> Mike "watch out for the mega-threads" Yetto

Instead here's the latest version taking care of some settings
that might interfere otherwise. Note the description at the,
errmh, standard spot.

#v+
#iffalse
fullthreads.sl - enter group and show full threads

$Id: fullthreads.sl,v 2aca1f62e126 2010-01-11 15:59 +0100 blacktrash $

Copyright (C) 2010 Christian Ebert <blacktrash@gmx.net>

This macro offers an answer to
"I want to see full threads as soon as they contain at least one unread article."
"Can slrn do this?"
from http://www.slrn.org/docs/slrn-FAQ-3.html
until the functionality is implemented in a generic way.

Works best with a local spool as the server has to be queried.
Needs a server with the XPAT extension for consistent results.
See note in manual.txt on get_children_headers.
#endif

implements ("fullthreads");

static define enter_fullthreads () {
  variable next = 1, show_article = get_variable_value ("show_article");
  set_integer_variable ("show_article", 0);
  call ("select_group");
  collapse_threads ();
  set_prefix_argument (1);
  while (next > 0) {
    try {
      call ("get_parent_header");
    }
    catch AnyError;
    collapse_thread ();
    next = header_down (1);
  }
  reset_prefix_arg ();
  call ("header_bob");
  uncollapse_threads ();
  % if first header is read jump to first unread article
  if (get_header_flags () mod 2)
    header_next_unread ();
  if (show_article)
    call ("hide_article");
  set_integer_variable ("show_article", show_article);
}

definekey ("fullthreads->enter_fullthreads", "\r", "group");
#v-

c "perhaps it should be called mega-threads"
-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_
                     Ein deutscher Western/A German Western

         --->> http://www.blacktrash.org/underdogma/ccc.php
Technical Details
Message-ID: <b3rr17xiik2.ln2@krille.blacktrash.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!krille.blacktrash.org!not-for-mail
References: <pan.2010.01.08.14.40.08@moria.lan> <7qpeb9FmqeU1@mid.individual.net> <td7p17xp0s1.ln2@krille.blacktrash.org> <fubp17xb5u1.ln2@krille.blacktrash.org> <7qusemFgsU1@mid.individual.net> <20100111162148.659@skamandros.andrews-corner.org> <a5dr17xos62.ln2@krille.blacktrash.org> <slrn20100111081441.658.twooffive@may.eternal-september.org>

Show Full Headers
Complete Article Headers
Message-ID: <b3rr17xiik2.ln2@krille.blacktrash.org>
Subject: Re: [slrn] I'd like to, but...
Date: Mon, 11 Jan 2010 16:01:31 +0100
From: Christian Ebert <blacktrash@gmx.net>
References: <pan.2010.01.08.14.40.08@moria.lan> <7qpeb9FmqeU1@mid.individual.net> <td7p17xp0s1.ln2@krille.blacktrash.org> <fubp17xb5u1.ln2@krille.blacktrash.org> <7qusemFgsU1@mid.individual.net> <20100111162148.659@skamandros.andrews-corner.org> <a5dr17xos62.ln2@krille.blacktrash.org> <slrn20100111081441.658.twooffive@may.eternal-september.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!krille.blacktrash.org!not-for-mail
Newsgroups: news.software.readers
Organization: Black Trash Productions http://www.blacktrash.org/
Lines: 82
X-Trace: news.albasani.net
 cI5KL4HUL5qJ+R/sn5FuekBA/XSZFytR8MmnGYdGblggkBmLWcD/D/RZX+IdeoXsDsWD0xpsXuvrFwYEuTMxkK1T5avRsqG1WKZsykyeLhuaEDh//E6dzblCmz3wDqMs
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Mon, 11 Jan 2010 15:01:37 +0000 (UTC)
X-User-ID: a/UjwlyfI7cUgG9zPRs2vGjYyPCkgtiTHQJ3Gm+xbe4=
X-Face: )&#alA:[x"-#%%./(nuC&8n; #gqM; =mfY&ivRz@Gnv|AD_0l1Uz{fnJ^BW~OX[d;
 /)z!y V
Cancel-Lock: sha1:ejlIdSymVgauDxpfGiqr4hBt7Sg=
User-Agent: slrn/pre1.0.0-18/mm/ao/mc (Darwin)
X-NNTP-Posting-Host: Jpa9559CugY/kncNy5M05HGPzMZEpX3xItObmQ/+XEA=
Mail-Copies-To: nobody