Article View: news.software.readers
Article #264065Re: [slrn] evaluating Score and checking articles for many groups
From: Rob
Date: Sun, 19 Apr 2020 18:28
Date: Sun, 19 Apr 2020 18:28
83 lines
4876 bytes
4876 bytes
Mike Yetto <unet.lighthouse@xoxy.net> wrote: > So it is writ, so mote it be.... > Rob <nomail@example.com>: >> When starting slrn a list of subscribed newsgroups with new articles >> appears. This includes the number of articles, which is only a guess. > >> When a group is visited, the actual headers are retrieved and the >> Score file is evaluated, often resulting in a lower number of articles, >> even zero. Then the group is not entered and we remain in the group list. > > The number of articles that are filtered out is determined by > downloading the header and parsing it with the score file. The > number first presented is calculated using the highest article > number the server has and the run-list from the newsrc file. That is what I understand, and why I said "it is only a guess". >> Is there some way to kick this evaluation for all subscribed groups >> in one go? (reducing the groups list so it only shows groups that >> actually have articles in them that are not killed or canceled) > > That would require a download of all unread articles in all > groups from all servers when entering slrn. This would take a > non-negligible amount of time. Assuming I am only using score on header items and want to remove articles that are canceled, it only needs to download headers, right? Furthermore, the groups that I want to do this for have only 1 or 2 unread articles, and downloading them should not take long. At least it doesn't when I perform this task manually... (ENTER, down arrow, ENTER, down arrow etc) I don't mind it takes time, I want to reduce effort. And I do not want it to do this *every time*, but only when I start slrn and find I have many pages of groupnames all with 1 article, I want to run some function manually to do this once. >> If not, I would like to add a function that walks the list of subscribed >> groups, and for each group that has only 1 or 2 new articles in it, >> will temporarily "visit" the group to invoke this evaluation and go >> back to the group list. > > It will be necessary to check each group to determine if the group > should be checked. Why? When I open slrn I see all those groups listed as having 1 article, so would it not be possible to write a function that takes this same list and visits all the groups with only 1 article? >> How would I proceed to write this? Is there some place where I can >> find example s-lang code that would perform such actions? >> (walk list of subscribed group, get info like "number of unread articles", >> conditionally open the group to fetch and evaluate headers and go back >> to the list walk) > > If you just open and immediately close each group you would end > up with an updated and more accurate number at the expense of > waiting for each group to open. Yes, that is what I want to do for all groups which have 1 or 2 unread articles at the time I see this condition exists. (having a list with 200 groups with 1 article each, and some groups with more articles, it does not need to visit those) >> I would find this useful in cases where one article is posted amongst >> many groups (like today), where setting a Score does not really help >> when you have many subscribed groups where articles rarely appear... > > You would find this an unnecessary, time consuming, or even > annoying addition to presenting the group list. I don't want it to be an addition to presenting the group list! I want it as a function after having seen that the group list is huge, which happens once a month for our local groups where some admin posts the charter every month, which of course I have killfiled, but I still need to go along all those groups to process that. > Mike 'just open each as you get to it' Yetto Unfortunately it requires me to press ENTER, DOWN ARROW, repeatedly for 200 times or more and when I mistakenly hit one of them twice before hitting the other, unwanted things happen.
Technical Details
Message-ID:
<slrnr9p62e.gfl.nomail@xs9.xs4all.nl>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-mailReferences:
<slrnr9ol2e.n02.nomail@xs9.xs4all.nl> <slrn20200419115345.123.twooffive@may.eternal-september.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnr9p62e.gfl.nomail@xs9.xs4all.nl> Subject: Re: [slrn] evaluating Score and checking articles for many groups Date: Sun, 19 Apr 2020 18:28:30 +0000 From: Rob <nomail@example.com> References: <slrnr9ol2e.n02.nomail@xs9.xs4all.nl> <slrn20200419115345.123.twooffive@may.eternal-september.org> 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 X-Received-Body-Crc: 3068895732 Lines: 83 Newsgroups: news.software.readers X-Trace: G=P/4ha6l0,C=U2FsdGVkX18u5zb1/Bs+PCHFSw5haHz/wx07WoHfXRu1xCepz2hzWj1KFnE3ci7BTYqYkAriOUM7c4KJ6jlUsfRIs6TlaKRkFsy55JAx/Xo= Nntp-Posting-Host: fcdfbc5c.news.xs4all.nl X-Received-Bytes: 4808 X-Complaints-To: abuse@xs4all.nl User-Agent: slrn/1.0.3 (Linux)