• [pan] Automatically caching (downloading) article bodies by score.

    From Lafe@lafe@lafes.invalid to news.software.readers on Wed Oct 29 01:58:13 2025
    From Newsgroup: news.software.readers

    Greetings!

    I've been trying to figure out a feature in the pan newsreader that has me
    a bit flummoxed. I'm currently on version 0.164.

    The goal is to be able to download all articles in subscribed groups that
    meet or exceed a given score, for convenient offline reading.

    Pan gets awfully close to this, though I do have to enter a group to
    trigger the behavior. In Preferences -> Actions, there's an option called "Cache articles scoring at:" that has a dropdown allowing you to select
    "Only new (score == 0)", or "9999 or more", or "5000 to 9998", and so on.
    But the problem there is that the values or ranges given all seem to be exclusive.

    If I select the only new, score == 0 option, it will download articles
    bodies for every (new) article that has a score of exactly 0. None that
    are higher, and none that are lower. If I select "1 to 4999" it does
    exactly that, and won't download new articles that have a score of 0, nor
    an article with a score of 9999...

    What I'd like to do is have a rule of "0 or higher". Or even "-100 or
    higher". But I haven't found a way.

    While searching online I ran across references to scoring rules like:

    %BOS
    # Auto cache articles with a -100 or greater score
    Score:: > -100
    Autocache:: body
    %EOS

    But this doesn't appear to work either. It might actually be for slrn, as
    they use the same scorefile format.

    Has anyone found a solution to something like this? I've thought of automatically adding a score of 1 to every new article by default, so at
    least all positive-scoring (but not TOO positive) articles would be
    grabbed, but it's not ideal.

    Thanks in advance!

    Lafe
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Lafe@lafe@lafes.invalid to news.software.readers on Sat Nov 1 01:33:56 2025
    From Newsgroup: news.software.readers

    On Wed, 29 Oct 2025 01:58:13 -0000 (UTC), Lafe wrote:

    <snip>
    The goal is to be able to download all articles in subscribed groups
    that meet or exceed a given score, for convenient offline reading.
    <snip>
    What I'd like to do is have a rule of "0 or higher". Or even "-100 or higher". But I haven't found a way.

    Finding no useful answers to this bit online, I decided to delve into the source code for my answer; and the answer is that I cannot do what I want
    to do with this feature. I have, however, found an easy place to edit the
    code and enable an arbitrary X-or-greater option in the configuration.

    While searching online I ran across references to scoring rules like:

    %BOS # Auto cache articles with a -100 or greater score Score:: > -100 Autocache:: body %EOS

    But this doesn't appear to work either. It might actually be for slrn,
    as they use the same scorefile format.

    Unfortunately, I have not had similar success in figuring out the answer
    to this approach. I have found that the scorefile doesn't (seem to?)
    produce the same kind of RuleInfo object that the configuration was doing,
    and the source for handling the score file format was not as easy to read
    and grok as the configuration bits. I need to actually download the source
    and look at it in an editor capable of jumping around between the various bits, and I haven't had the energy and motivation yet at the same time. :)

    I was hoping a developer who has already plumbed these depths would have
    seen my question, and answer from the top of their heads. If I find an
    answer I'll try to return here and update the thread. I think I saw that there's a mailing list, perhaps I can try there too.

    Lafe
    --- Synchronet 3.21a-Linux NewsLink 1.2