🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #226380

Re: [slrn] Display all threads that contain unread messages

#226380
From: Bob Cortopassi
Date: Sat, 27 Sep 2008 05:51
30 lines
2240 bytes
On 2008-09-25, Erik Hahn <erik_hahn@replyto.invalid> wrote:
> The page at http://tinyurl.com/477j9r (Google Cache, it isn't available
> at the original place anymore) claims that you could use a macro to
> display all threads fully that contain at least one unread message. Does
> such a macro already exist or could someone create it (I don't know
> s-lang)?

This should work, and yet it doesn't.  Maybe someone more familiar
with s-lang and slrn's interaction can take it from here.  It does the
right thing on the first article, but that's it.

define get_all_parents ()
{
   variable i = group_unread() - 1;

   do 
   {
      set_prefix_argument (1); 
      call ("get_parent_header");
      header_next_unread();
      i--;
   } 
   while (i);
}

definekey ("get_all_parents", "p", "article");

-- 
email: echo "sbs@sbsrearg.pbz" | sed 's/s/o/g' | rot13
All posts from Google Groups are auto-killed.
Technical Details
Message-ID: <gbkhl8$8i6$1@registered.motzarella.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.k-dsl.de!news.motzarella.org!motzarella.org!not-for-mail
References: <gbgtk6$5lf$01$1@news.t-online.com>

Show Full Headers
Complete Article Headers
Message-ID: <gbkhl8$8i6$1@registered.motzarella.org>
Subject: Re: [slrn] Display all threads that contain unread messages
Date: Sat, 27 Sep 2008 05:51:37 +0000
From: Bob Cortopassi <bobernet@nsa.invalid>
References: <gbgtk6$5lf$01$1@news.t-online.com>
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.k-dsl.de!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: usenet is dead
Lines: 30
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX1+UgzjSVKdINwIJw7EApkNTer4j6zbSQa/jBZoe4OZy2bAaw+hOHq8uVLQZacQUNIDre0+sgX6yfI1StMrzPSE/iISttRXFUZ03BAgzFYkJm+CMOUalJaJiSwRJitLyfuM/Gd9JRKs56Q==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Sat, 27 Sep 2008 05:51:37 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX18RF4L/1vgn4RRatLhL7GU2UKif04ClNnXPmXoX7vWH3A==
Cancel-Lock: sha1:aULBeykcFpxDmF/G0udlqQNBTMI=
User-Agent: slrn/pre0.9.9-111 (Linux)