🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #245370

Re: [slrn]Sort by number of articles in thread?

#245370
From: Rockinghorse Winner
Date: Tue, 26 Apr 2011 19:15
42 lines
2758 bytes
* It may have been the liquor talking, but 
You <usenet@plaguesplace.dyndns.org> wrote:

> On Wed, 9 Mar 2011 20:52:45 -0800, Rockinghorse Winner <rwinner@remove_this.hmamail.com> wrote:
>> Is there a way to sort the most active threads (no. of articles) at the top
>> of the list? Thanks!
>
> Doesn't sort, but adds a score equal to the number of articles in the thread so
> busier threads sort higher when sorting by score.
>
> Below coded released to the public domain.
>
> joe
>
> cat ~/.slrn/thr_sz_sc.sl
> variable my_numart;
> define score_group_by_replies ()
> {
>         do
>         {
>                 my_numart = 0;
>                 %retrieve the number articles in the thread
>                 my_numart = thread_size;
>                 %set the new score to the old scrore plus the threadcount
>                 set_header_score ( get_header_score + my_numart - 1 );
>         }
>         %resort the output
>         while (header_down (1));
>         sort_by_sorting_method (5);
>         call ("header_bob");
> }
>
> () = register_hook ("article_mode_startup_hook", "score_group_by_replies");

Wow, awsome! Thank's a lot for that - great stuff. :)

*R* *H*
-- 
          Powered by Linux	     |/       2.6.32.26-175 Fedora 12 
 "No spyware. No viruses. No nags."  |/     2.6.31.12-0.2 OpenSUSE 11.2 
  http://www.catholicscomehome.org   |/Mutt 1.5.21  slrn 0.9.9p1  Irssi 0.8.15
      "Preach the gospel always; when necessary use words."  St. Francis    
Technical Details
Message-ID: <slrnire6e9.tqt.rwinner@8600.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.20140922.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!mauve.octanews.net!207.246.207.24.MISMATCH!border6.newsrouter.astraweb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail
References: <slrningm8v.p3j.rwinner@8600.edu> <slrnir3rpj.5gv.usenet@plaguesplace.dyndns.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnire6e9.tqt.rwinner@8600.edu>
Subject: Re: [slrn]Sort by number of articles in thread?
Date: Tue, 26 Apr 2011 12:15:19 -0700
From: Rockinghorse Winner <rwinner@remove_this.hmamail.com>
References: <slrningm8v.p3j.rwinner@8600.edu> <slrnir3rpj.5gv.usenet@plaguesplace.dyndns.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!mauve.octanews.net!207.246.207.24.MISMATCH!border6.newsrouter.astraweb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail
Newsgroups: news.software.readers
Organization: Borscht Belt Babes
User-Agent: slrn/0.9.9p1 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 42
NNTP-Posting-Host: 552fd5c7.news.astraweb.com
X-Trace: DXC=e3o;
 Qjj_eHARm_f?\>0G3FL?0kYOcDh@Jf=T=oWDM4JCB2^i4h45i\J8WZUc:ZBMXOJnYPi4E@?6G>an`4eKdb\GXKcOJMi^lMC_Mo4HEK?lYL