🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #160229

Re: [slrn] Unread message count doesn't take scoring into account?

#160229
From: Toby
Date: Wed, 05 Jan 2005 09:35
45 lines
2449 bytes
On 2004-12-25, J.B. Nicholson-Owens <jbn@forestfield.org> wrote:
> On 2004-12-22, Toby <google@asktoby.com> wrote:
>> However, the number of unread messages, whilst accurate, does not take
>> into account the scoring of the messages.
>
> If you're using S-Lang 1.x, try the following:
>
> #v+
> define my_cleanup_article_counts ()
> {
>   !if (is_group_mode ()) { return; }
>   call ("bob");
>   do
>     {
>        % In S-Lang 1.x, we need to clear the error explicitly.  We don't
>        % care that an error was raised, we just want to keep on going.
>        ERROR_BLOCK { _clear_error (); }
>
>        % This might raise an error if all the articles are killed.
>        if (group_unread ()) { () = select_group (); }
>
>        % Back out from article mode to group mode.
>        !if (is_group_mode ()) { call ("quit"); }
>     }
>   while (group_down_n (1));
> }
> #v-

$ slrn --version indicates that I have S-Lang version 1.4.9, so I'll go
with the first one. Do I treat the code like a macro?
i.e.:
Save the code in a text file 'foo.sl', and add these lines to my ~/.slrn?

   % Toby's header pane size macro:
   interpret /home/toby/News/macros/foo.sl.sl

Or do I have to use something like:

   setkey article foo->my_cleanup_article_counts "^R"    % Clean counts

and then launch the macro manually from a keypress?

-- 
Toby.
FT: 250 DK Bongo Stars
Technical Details
Message-ID: <slrnctnd76.ag4.google@ID-171443.user.uni-berlin.de>
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!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrncsj7cn.sq1.google@ID-171443.user.uni-berlin.de> <slrncsrr46.m7l.jbn@forestfield.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnctnd76.ag4.google@ID-171443.user.uni-berlin.de>
Subject: Re: [slrn] Unread message count doesn't take scoring into account?
Date: Wed, 5 Jan 2005 09:35:34 +0000
From: Toby <google@asktoby.com>
References: <slrncsj7cn.sq1.google@ID-171443.user.uni-berlin.de> <slrncsrr46.m7l.jbn@forestfield.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!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 45
X-Trace: individual.net 5k14vODHAfjJyVAqlcAZZA6BZjf4qIbfJYNnCWhnG3z+HxnfaH
X-Orig-Path: ID-171443.user.uni-berlin.de!news
X-Face: M-UF_i4u)Y#NL_Zj{.jz=jEK"H'#yS"{M#44*%n`'O8p>[$+cK=2tn~7hFF=qO7IoSu{}no0d5#HRv1A[~eY2t,
 P<JsK\fB+-P.WPY<ex]<y<[s.go@>#/1k*o1Lhn].fPc~H}n:Z
User-Agent: slrn/0.9.8.0 (Linux)