🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #160603

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

#160603
From: W. Citoan
Date: Tue, 11 Jan 2005 01:39
50 lines
2825 bytes
J.B. Nicholson-Owens wrote:
>  Toby wrote:
> > 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?
>  
>  You'll need to do both -- the interpret instruction loads the macro,
>  the keypress will execute the loaded macro.
>  
>  I would not recommend adding this to a hook to be called
>  automatically.  It sounds ideal, but hooks get called a /lot/ and
>  this function only really needs to be called when you enter group
>  mode and stay there.

Given the purpose of this macro, I'd override the "g" key.  That way it
will pull new messages from the server and then correct the counts.  To
do that right, add 

   call ("refresh_groups");

right before the 

   call ("bob");

line.  Then instead of the setkey, right after the macro ends, you can
add the following line:

   definekey ("my_cleanup_article_counts", "g", "group");

>  Perhaps using the group_mode_startup_hook and wrapping call("quit")
>  in a macro which calls the function would suffice.

Actually, that's a decent suggestion.  Then it should work at startup as
well without having to hit a key...

- W. Citoan
-- 
If ever there could be a proper time for mere catch arguments, that time
surely is not now. In times like the present, men should utter nothing for
which they would not willingly be responsible through time and in eternity.
-- Abraham Lincoln
Technical Details
Message-ID: <slrncu6bhu.3fs.wcitoan@wcitoan-via.supernews.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!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!tethys.csu.net!nntp.csufresno.edu!sn-xit-02!sn-xit-12!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <slrncsj7cn.sq1.google@ID-171443.user.uni-berlin.de> <slrncsrr46.m7l.jbn@forestfield.org> <slrnctnd76.ag4.google@ID-171443.user.uni-berlin.de> <slrncu641e.tcv.jbn@forestfield.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrncu6bhu.3fs.wcitoan@wcitoan-via.supernews.com>
Subject: Re: [slrn] Unread message count doesn't take scoring into account?
Date: Tue, 11 Jan 2005 01:39:19 -0000
From: "W. Citoan" <wcitoan@NOSPAM-yahoo.com>
References: <slrncsj7cn.sq1.google@ID-171443.user.uni-berlin.de> <slrncsrr46.m7l.jbn@forestfield.org> <slrnctnd76.ag4.google@ID-171443.user.uni-berlin.de> <slrncu641e.tcv.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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!tethys.csu.net!nntp.csufresno.edu!sn-xit-02!sn-xit-12!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.readers
Organization: Posted via Supernews, http://www.supernews.com
User-Agent: slrn/0.9.7.4 (Win32)
X-Complaints-To: abuse@supernews.com
Lines: 50