🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #265036

Re: slrn: Sort most recently active threads first?

#265036
From: Jay
Date: Fri, 18 Jun 2021 13:43
21 lines
2111 bytes
On 2021-06-17, Tavis Ormandy <taviso@gmail.com> wrote:
> On 2021-06-17, Tavis Ormandy wrote:
>> On 2021-06-17, Jay wrote:
>>> Thanks. That doesn't quite work; it still sorts by the date of the highest
>>> ancestor of a thread, not by the most recent message in any given thread.
>>
>> You can't alter articles in article_mode_hook, but you can adjust the
>> score. What if you temporarily set the score of each article to the
>> unixtime it was sent, sort it, then change it back?
>
> I made some improvements:
>
>     - Using UNIX time works but doesn't handle timezones. A better idea
>       is to make slrn sort it then reuse whatever index it assigns the
>       message.
>     - It turns out sorting updates the flags displayed, so they were out
>       of sync.
>
> I've been using it today, I kinda like it.

Thanks!
Technical Details
Message-ID: <moWdnSo4jKebPlH9nZ2dnUU7-V-dnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <Vf-dnZxW26zvs1f9nZ2dnUU7-YednZ2d@giganews.com> <ij185cFc4i6U1@mid.individual.net> <l42dnRHMzoRd9lb9nZ2dnUU7-fednZ2d@giganews.com> <ij1kb1FekeqU1@mid.individual.net> <ij23jfFhbdnU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <moWdnSo4jKebPlH9nZ2dnUU7-V-dnZ2d@giganews.com>
Subject: Re: slrn: Sort most recently active threads first?
Date: Fri, 18 Jun 2021 08:43:34 -0500
From: Jay <jay@jay.xyz>
References: <Vf-dnZxW26zvs1f9nZ2dnUU7-YednZ2d@giganews.com> <ij185cFc4i6U1@mid.individual.net> <l42dnRHMzoRd9lb9nZ2dnUU7-fednZ2d@giganews.com> <ij1kb1FekeqU1@mid.individual.net> <ij23jfFhbdnU1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
User-Agent: slrn/1.0.3 (Linux)
X-Trace: sv3-vJDm13bT4Tc2uo+ANemX/m2ykFkOBbtIqWlhyS4z+XBWg+OnhiOVNjOogDg9uPUDhbobumoWzMvtVT8!PQYS4NeSDtkxC6FY3A0Zr3SxWZR0sRv+iSQxrlOO8d9/yOFsNuZIeUa66L59Z4jlPOk4F7r9Msk=
X-Abuse-And-Dmca-Info: Please be sure to forward a copy of ALL headers
X-Abuse-And-Dmca-Info: Otherwise we will be unable to process your complaint properly
Newsgroups: news.software.readers
Nntp-Posting-Date: Fri, 18 Jun 2021 08:43:34 -0500
Lines: 21
X-Postfilter: 1.3.40
X-Original-Bytes: 1953
X-Dmca-Notifications: http://www.giganews.com/info/dmca.html
X-Complaints-To: abuse@giganews.com
X-Usenet-Provider: http://www.giganews.com