Article View: news.software.readers
Article #264061[slrn] evaluating Score and checking articles for many groups
From: Rob
Date: Sun, 19 Apr 2020 13:38
Date: Sun, 19 Apr 2020 13:38
25 lines
2010 bytes
2010 bytes
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. 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) 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. 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) 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...
Technical Details
Message-ID:
<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-mailShow Full Headers
Complete Article Headers
Message-ID: <slrnr9ol2e.n02.nomail@xs9.xs4all.nl> Subject: [slrn] evaluating Score and checking articles for many groups Date: Sun, 19 Apr 2020 13:38:22 +0000 From: Rob <nomail@example.com> 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 User-Agent: slrn/1.0.3 (Linux) Nntp-Posting-Host: 3e5b853f.news.xs4all.nl Newsgroups: news.software.readers X-Complaints-To: abuse@xs4all.nl Lines: 25 X-Trace: G=P/4ha6l0,C=U2FsdGVkX1+Nx9PbuKpykPuLzq0spv1EvLzpYkCYvMzEBe5FxTxyo2KxCdJ9gG/NLlvv3OJvJdaXNG0UONQkTlA3bLQ1bM/H45rWbKcdgQs=