Article View: news.software.readers
Article #245369Re: [slrn]Sort by number of articles in thread?
From: Rockinghorse Winner
Date: Tue, 26 Apr 2011 09:14
Date: Tue, 26 Apr 2011 09:14
45 lines
2805 bytes
2805 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");
Sorry took so long to respond. Thanks for this I will try it out tomorrow
and let you know how it works on my system.
Regards,
*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:
<slrnird38d.nuf.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!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!mauve.octanews.net!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mailReferences:
<slrningm8v.p3j.rwinner@8600.edu> <slrnir3rpj.5gv.usenet@plaguesplace.dyndns.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnird38d.nuf.rwinner@8600.edu> Subject: Re: [slrn]Sort by number of articles in thread? Date: Tue, 26 Apr 2011 02:14:52 -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!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!mauve.octanews.net!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: 45 NNTP-Posting-Host: 1f24cb89.news.astraweb.com X-Trace: DXC=cO3f05FmR=DWe7Bc]TQV_NL?0kYOcDh@JO13VQ=noH4I[FIR:V5`5hFl9B_G1R=S=GCU7mKne4@X@2lYL^HK\c; E3>36WiI3TnAAlO7jDFQV6E]\0>LPQFMlGe; <U3`DH`6N X-Original-Bytes: 2533