Article View: news.software.readers
Article #264062Re: [slrn] evaluating Score and checking articles for many groups
From: Mike Yetto
Date: Sun, 19 Apr 2020 16:12
Date: Sun, 19 Apr 2020 16:12
52 lines
3269 bytes
3269 bytes
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. > 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. > 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. > 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. > 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. Mike 'just open each as you get to it' Yetto -- "I need sceptical, clever, critical. Sceptical and critical, remember? Be strong, even if it breaks your heart." - The Twelfth Doctor, Dr. Who, Dark Water, with Peter Capaldi
Technical Details
Message-ID:
<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-mailReferences:
<slrnr9ol2e.n02.nomail@xs9.xs4all.nl>Show Full Headers
Complete Article Headers
Message-ID: <slrn20200419115345.123.twooffive@may.eternal-september.org> Subject: Re: [slrn] evaluating Score and checking articles for many groups Date: Sun, 19 Apr 2020 12:12:04 -0400 From: Mike Yetto <unet.lighthouse@xoxy.net> References: <slrnr9ol2e.n02.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-mail Organization: Just put it in that pile, I'll get to it. Lines: 52 X-The-Usenet-Improvement-Project: http://twovoyagers.com/improve-usenet.org/ User-Agent: slrn/pre1.0.4-2/co (Linux) Newsgroups: news.software.readers Cancel-Lock: sha1:VT7K7FjldSdyOlbmSZcbu53hzlk= X-No-Bananas: Yes (except Ray)