Thread View: news.software.readers
15 messages
15 total messages
Started by Toby
Wed, 22 Dec 2004 16:15
[slrn] Unread message count doesn't take scoring into account?
Author: Toby
Date: Wed, 22 Dec 2004 16:15
Date: Wed, 22 Dec 2004 16:15
33 lines
2184 bytes
2184 bytes
Hi,
Been learning slrn for a week or two now. It's good, and I've ironed out
most of my quibbles with a few macros and things.
There's one thing that is bugging me though, and I can't see a way to
fix it:
In the newsgroup list, I have the default three columns:
The status of the newsgroup (N, U, or blank for subscribed)
the number of unread messages in each group,
and the newsgroup name
e.g.
30 news.software.readers
U 5 rec.audio.high-end
However, the number of unread messages, whilst accurate, does not take
into account the scoring of the messages.
This means that, in the newsgroup list, it will say that
news.software.readers contains 30 unread messages, but when I select the
newsgroup and enter it, I find that it only contains 1 unread message in
white, and the other 29 are greened out, scored low, for whatever
reason I scored them last time I read the group.
Is there a way to get slrn to take scoring of threads into account
before it shows the unread-messages totals?
It gets tiresome needlessly opening the individual newsgroups, pressing
x to get rid of all the greened out low-score threads, and finding
nothing left.
--
Toby.
FT: 250 DK Bongo Stars
Re: [slrn] Unread message count doesn't take scoring into account?
Author: W. Citoan
Date: Wed, 22 Dec 2004 22:05
Date: Wed, 22 Dec 2004 22:05
31 lines
2065 bytes
2065 bytes
Toby wrote: > > However, the number of unread messages, whilst accurate, does not > take into account the scoring of the messages. slrn doesn't actually score the messages until you enter the group. It doesn't know that information at this point. > Is there a way to get slrn to take scoring of threads into account > before it shows the unread-messages totals? You could probably write a slang routine to cycle through each group, open it, and exit back out. Another option is to use slrnpull (or leafnode, etc). Scoring would then be done during download and any article you set to kill (delete) won't be downloaded so won't show up in the counts. This wouldn't work for articles you only score low, but not kill -- but it would get you partly there. > It gets tiresome needlessly opening the individual newsgroups, > pressing x to get rid of all the greened out low-score threads, and > finding nothing left. If you're just going to remove them, then set your display thresholds so they're not shown in the first place. - W. Citoan -- His mind his kingdom, and his will his law. -- Cowper
Re: [slrn] Unread message count doesn't take scoring into account?
Author: Toby
Date: Thu, 23 Dec 2004 08:17
Date: Thu, 23 Dec 2004 08:17
33 lines
2230 bytes
2230 bytes
On 2004-12-22, W. Citoan <wcitoan@NOSPAM-yahoo.com> wrote: > Another option is to use slrnpull (or leafnode, etc). Scoring would > then be done during download and any article you set to kill (delete) > won't be downloaded so won't show up in the counts. This wouldn't work > for articles you only score low, but not kill -- but it would get you > partly there. Well, I am using leafnode at the moment. I'm downscoring threads at the moment to -666 (for no reason other than to help me work out which macro is running!). By digging the documentation it looks like I should add set kill_score -9999 to my .slrnrc and start scoring things -9999 to avoid downloading them. (I have no such 'set kill_score' line at the moment.) >> It gets tiresome needlessly opening the individual newsgroups, >> pressing x to get rid of all the greened out low-score threads, and >> finding nothing left. > > If you're just going to remove them, then set your display thresholds so > they're not shown in the first place. Would I do this by adding set max_low_score -665 to my .slrnrc? -- Toby. FT: 250 DK Bongo Stars
Re: [slrn] Unread message count doesn't take scoring into account?
Author: Joe R
Date: Thu, 23 Dec 2004 18:08
Date: Thu, 23 Dec 2004 18:08
31 lines
2537 bytes
2537 bytes
On Wed, 22 Dec 2004 22:05:18 -0000, W. Citoan wrote: > Toby wrote: >> >> However, the number of unread messages, whilst accurate, does not >> take into account the scoring of the messages. > > slrn doesn't actually score the messages until you enter the group. It > doesn't know that information at this point. > >> Is there a way to get slrn to take scoring of threads into account >> before it shows the unread-messages totals? > > You could probably write a slang routine to cycle through each group, > open it, and exit back out. > > Another option is to use slrnpull (or leafnode, etc). Scoring would > then be done during download and any article you set to kill (delete) > won't be downloaded so won't show up in the counts. This wouldn't work > for articles you only score low, but not kill -- but it would get you > partly there. Using slrnpull yields the same behaviour. Slrn shows 357 messages unread, but after orening the group and exiting the group without reading any messages shows 320 messages unread. -- clear skies, Joe http://users.erols.com/jringer3/astro1.htm
Re: [slrn] Unread message count doesn't take scoring into account?
Author: W. Citoan
Date: Fri, 24 Dec 2004 00:30
Date: Fri, 24 Dec 2004 00:30
22 lines
2063 bytes
2063 bytes
Joe R wrote: > On Wed, 22 Dec 2004 22:05:18 -0000, W. Citoan wrote: > > > > Another option is to use slrnpull (or leafnode, etc). Scoring would > > then be done during download and any article you set to kill > > (delete) won't be downloaded so won't show up in the counts. This > > wouldn't work for articles you only score low, but not kill -- but > > it would get you partly there. > > Using slrnpull yields the same behaviour. Slrn shows 357 messages > unread, but after orening the group and exiting the group without > reading any messages shows 320 messages unread. You're right. It's what I get for doing it from memory without double checking. I think if the kills are all at the end, slrn won't count them (since I'm guessing it simply does a difference between the lowest and highest article numbers), but that's not very likely at all. - W. Citoan -- The mind is the man, and the knowledge of the mind. -- Bacon
Re: [slrn] Unread message count doesn't take scoring into account?
Author: W. Citoan
Date: Fri, 24 Dec 2004 00:43
Date: Fri, 24 Dec 2004 00:43
51 lines
2897 bytes
2897 bytes
Toby wrote: > On 2004-12-22, W. Citoan <wcitoan@NOSPAM-yahoo.com> wrote: > > Another option is to use slrnpull (or leafnode, etc). Scoring would > > then be done during download and any article you set to kill > > (delete) won't be downloaded so won't show up in the counts. This > > wouldn't work for articles you only score low, but not kill -- but > > it would get you partly there. > > Well, I am using leafnode at the moment. I'm downscoring threads at > the moment to -666 (for no reason other than to help me work out > which macro is running!). First, please note that, as Joe pointed out, I was wrong with this suggestion. > By digging the documentation it looks like I should add set > kill_score -9999 to my .slrnrc and start scoring things -9999 to > avoid downloading them. (I have no such 'set kill_score' line at the > moment.) > > >> It gets tiresome needlessly opening the individual newsgroups, > >> pressing x to get rid of all the greened out low-score threads, > >> and finding nothing left. > > > > If you're just going to remove them, then set your display > > thresholds so they're not shown in the first place. > > Would I do this by adding > > set max_low_score -665 > > to my .slrnrc? No, max_low_score defines the level below which articles are marked read but are displayed. kill_score defines the level below which articles are never shown. I use: set min_high_score 1 set max_low_score 0 set kill_score -5000 but it's up to your personal taste. I rarely score anything in the 0 to -4999 range. If I score it down, than I don't want to see it so my scores are all -5000 and below. I could just as easily have set kill_score to -1. - W. Citoan -- The mind is the man, and the knowledge of the mind. -- Bacon
Re: [slrn] Unread message count doesn't take scoring into account?
Author: Felixk Karpfen
Date: Sat, 25 Dec 2004 19:48
Date: Sat, 25 Dec 2004 19:48
32 lines
2069 bytes
2069 bytes
On 2004-12-23, Joe R <jringer3@speedy.ringer.home> wrote: > On Wed, 22 Dec 2004 22:05:18 -0000, W. Citoan wrote: >> Toby wrote: >>> >>> However, the number of unread messages, whilst accurate, does not >>> take into account the scoring of the messages. >> >> slrn doesn't actually score the messages until you enter the group. It >> doesn't know that information at this point. Try closing the group and re-opening it. >> >> Another option is to use slrnpull (or leafnode, etc). Scoring would >> then be done during download and any article you set to kill (delete) >> won't be downloaded so won't show up in the counts. This wouldn't work >> for articles you only score low, but not kill -- but it would get you >> partly there. >> Have you tried this? slrnpull uses its own SCORE file. In the sample SCORE file, that comes with slrnpull,its SCORE file appears to have a different (simpler) structure than the slrn SCORE file. Felix Karpfen -- Felix Karpfen Public Key 72FDF9DF (DH/DSA)
Re: [slrn] Unread message count doesn't take scoring into account?
Author: J.B. Nicholson-Owens
Date: Sat, 25 Dec 2004 22:41
Date: Sat, 25 Dec 2004 22:41
62 lines
2739 bytes
2739 bytes
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-
or if you're using S-Lang 2.x, try the following:
#v+
define my_cleanup_article_counts ()
{
!if (is_group_mode ()) { return; }
call ("bob");
do
{
try
{
% This might raise an exception if all the articles are killed.
if (group_unread ()) { () = select_group (); }
}
% In S-Lang 2.x, AnyError is the error at the top of the exception
% hierarchy. We don't care what exception is raised, we just want
% to keep on going.
catch AnyError:
{
% This is just a placeholder to clear the error. According to
% S-Lang 2.x docs, we don't _clear_error() anymore; clearing
% the error is automatic when the error is caught.
}
% Back out from article mode to group mode.
!if (is_group_mode ()) { call ("quit"); }
}
while (group_down_n (1));
}
#v-
Both of them should help you learn the true article counts for all
newsgroups in the group list. This will require time and bandwidth to run
and doesn't scale up well (the more groups you want to check, the more time
it takes to run).
Re: [slrn] Unread message count doesn't take scoring into account?
Author: W. Citoan
Date: Sun, 26 Dec 2004 02:55
Date: Sun, 26 Dec 2004 02:55
36 lines
2505 bytes
2505 bytes
Felixk Karpfen wrote: > On 2004-12-23, Joe R <jringer3@speedy.ringer.home> wrote: > > On Wed, 22 Dec 2004 22:05:18 -0000, W. Citoan wrote: > >> Toby wrote: > >>> > >>> However, the number of unread messages, whilst accurate, does not > >>> take into account the scoring of the messages. > >> > >> slrn doesn't actually score the messages until you enter the group. > >> It doesn't know that information at this point. > > Try closing the group and re-opening it. This was what the OP was trying to avoid doing... > >> Another option is to use slrnpull (or leafnode, etc). Scoring > >> would then be done during download and any article you set to kill > >> (delete) won't be downloaded so won't show up in the counts. This > >> wouldn't work for articles you only score low, but not kill -- but > >> it would get you partly there. > >> > Have you tried this? > > slrnpull uses its own SCORE file. In the sample SCORE file, that > comes with slrnpull,its SCORE file appears to have a different > (simpler) structure than the slrn SCORE file. Wrong. slrn and slrnpull use the exact same scoring file format. In fact, the easiest thing is to use (like I do) the same score file for both (either via a link or the command line option) which causes any changes made via slrn to take effect in slrnpull. - W. Citoan -- These are the times that try men's souls. -- Thomas Paine
Re: [slrn] Unread message count doesn't take scoring into account?
Author: Felixk Karpfen
Date: Tue, 28 Dec 2004 20:40
Date: Tue, 28 Dec 2004 20:40
29 lines
1979 bytes
1979 bytes
On 2004-12-26, W. Citoan <wcitoan@NOSPAM-yahoo.com> wrote: > Felixk Karpfen wrote: >> In the sample SCORE file, that comes with slrnpull, its SCORE file >> appears to have a different (simpler) structure than the slrn SCORE >> file. > > Wrong. slrn and slrnpull use the exact same scoring file format. Egg on my face - not unusual. The comment relates to previously-installed versions and I had failed to check for the changes in the versions that was part of the recently-installed Debian Sarge. > In fact, the easiest thing is to use (like I do) the same score file > for both (either via a link or the command line option) which causes > any changes made via slrn to take effect in slrnpull. That is what I hoped - but was too chicken to try. Many thanks. Felix Karpfen -- Felix Karpfen Public Key 72FDF9DF (DH/DSA)
Re: [slrn] Unread message count doesn't take scoring into account?
Author: W. Citoan
Date: Tue, 28 Dec 2004 22:20
Date: Tue, 28 Dec 2004 22:20
33 lines
2496 bytes
2496 bytes
Felixk Karpfen wrote: > On 2004-12-26, W. Citoan <wcitoan@NOSPAM-yahoo.com> wrote: > > Felixk Karpfen wrote: > > >> In the sample SCORE file, that comes with slrnpull, its SCORE file > >> appears to have a different (simpler) structure than the slrn > >> SCORE file. > > > > Wrong. slrn and slrnpull use the exact same scoring file format. > > Egg on my face - not unusual. > > The comment relates to previously-installed versions and I had failed > to check for the changes in the versions that was part of the > recently-installed Debian Sarge. It hasn't changed. It's always been that way. > > In fact, the easiest thing is to use (like I do) the same score file > > for both (either via a link or the command line option) which causes > > any changes made via slrn to take effect in slrnpull. > > That is what I hoped - but was too chicken to try. I'm not sure why. You were given that same information by me and others back in November when you were asking questions on slrnpull. - W. Citoan -- "Bother," said Pooh, "Eeyore, ready two photon torpedoes and lock phasers on the Heffalump. Piglet, meet me in transporter room three. Christopher Robin, you have the bridge." -- Anonymous
Re: [slrn] Unread message count doesn't take scoring into account?
Author: Toby
Date: Wed, 05 Jan 2005 09:23
Date: Wed, 05 Jan 2005 09:23
62 lines
3411 bytes
3411 bytes
On 2004-12-24, W. Citoan <wcitoan@NOSPAM-yahoo.com> wrote: > Toby wrote: >> On 2004-12-22, W. Citoan <wcitoan@NOSPAM-yahoo.com> wrote: >> > Another option is to use slrnpull (or leafnode, etc). Scoring would >> > then be done during download and any article you set to kill >> > (delete) won't be downloaded so won't show up in the counts. This >> > wouldn't work for articles you only score low, but not kill -- but >> > it would get you partly there. >> >> Well, I am using leafnode at the moment. I'm downscoring threads at >> the moment to -666 (for no reason other than to help me work out >> which macro is running!). > > First, please note that, as Joe pointed out, I was wrong with this > suggestion. > >> By digging the documentation it looks like I should add set >> kill_score -9999 to my .slrnrc and start scoring things -9999 to >> avoid downloading them. (I have no such 'set kill_score' line at the >> moment.) >> >> >> It gets tiresome needlessly opening the individual newsgroups, >> >> pressing x to get rid of all the greened out low-score threads, >> >> and finding nothing left. >> > >> > If you're just going to remove them, then set your display >> > thresholds so they're not shown in the first place. >> >> Would I do this by adding >> >> set max_low_score -665 >> >> to my .slrnrc? > > No, max_low_score defines the level below which articles are marked read > but are displayed. kill_score defines the level below which articles > are never shown. I use: > > set min_high_score 1 > set max_low_score 0 > set kill_score -5000 > > but it's up to your personal taste. > > I rarely score anything in the 0 to -4999 range. If I score it down, > than I don't want to see it so my scores are all -5000 and below. I > could just as easily have set kill_score to -1. > > - W. Citoan Sorry for the horrendous delay in replying - Christmas! I added set kill_score -1 to my ~/.slrn and it has made things much easier, thanks. I'm now going to attemt the slang suggested elsewhere in the thread to correct my newsgroup list's post counts. -- Toby. FT: 250 DK Bongo Stars
Re: [slrn] Unread message count doesn't take scoring into account?
Author: Toby
Date: Wed, 05 Jan 2005 09:35
Date: Wed, 05 Jan 2005 09:35
45 lines
2449 bytes
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
Re: [slrn] Unread message count doesn't take scoring into account?
Author: J.B. Nicholson-Owens
Date: Mon, 10 Jan 2005 23:30
Date: Mon, 10 Jan 2005 23:30
22 lines
1847 bytes
1847 bytes
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. Perhaps using
the group_mode_startup_hook and wrapping call("quit") in a macro which calls
the function would suffice.
Happy newsreading.
Re: [slrn] Unread message count doesn't take scoring into account?
Author: W. Citoan
Date: Tue, 11 Jan 2005 01:39
Date: Tue, 11 Jan 2005 01:39
50 lines
2825 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads