Article View: news.software.readers
Article #265153Re: [slrn] Unable to score articles based on Xref: or Newsgroups: headers.
From: Tavis Ormandy
Date: Thu, 26 Aug 2021 17:49
Date: Thu, 26 Aug 2021 17:49
51 lines
2621 bytes
2621 bytes
On 2021-08-26, Lafe wrote: > On 2021-08-26, Tavis Ormandy <taviso@gmail.com> wrote: > Thanks for looking! I didn't know about that view_scores, but I tried it on an > article in this newsgroup that had an Xref header that contained two colon ":" > characters in its contents, and it told me that the article didn't match on any > rules. > > I'm guessing that's the root of the problem. It doesn't seem to like that > specific regex, or just isn't able to apply it to that header correctly. > > You say that it does work for you though? I'm not sure what could be > different. Yes, I use rules like this that work fine: Score: -10 % X-Posted > 3 Xref: :.*:.*:.*: Score: -10 % X-Posted > 4 Xref: :.*:.*:.*:.*: Score: -10 % X-Posted > 5 Xref: :.*:.*:.*:.*:.*: > > If I add a Newsgroups: rule, and then attempt open a newsgroup, it appears that > slrn will download articles automatically to be able to check the rule. But > only sometimes. And if it attempts this against a newsgroup with more than > about 20 unread articles it says that there's an error and disconnects me and > quits/crashes to the command line. That may be something weird with my nntp > provider though (newsdemon). Hmm, maybe try `set prefer_head 2`? If that fixes it, seems like it is your provider (Note that scoring will be much slower without overviews, but maybe that doesn't bother you!). > > Scoring on Xref or Newsgroups headers isn't a deal breaker, it's just strange > and I wish I could figure out why it doesn't work. > Maybe also verify there is no accidental weird line endings or something? You could create a fresh scorefile like: $ printf "Score: -10\nXref: :.*:\n" > scorefile Tavis. -- _o) $ lynx lock.cmpxchg8b.com /\\ _o) _o) $ finger taviso@sdf.org _\_V _( ) _( ) @taviso
Technical Details
Message-ID:
<ioq2grFivemU1@mid.individual.net>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:
<slrnsicqp2.277i.lafe@lafelet.lafes.net> <iopue2Fi1i6U1@mid.individual.net> <169eeb491fc33660$1$1669403$cad58068@news.newsdemon.com>Show Full Headers
Complete Article Headers
Message-ID: <ioq2grFivemU1@mid.individual.net> Subject: Re: [slrn] Unable to score articles based on Xref: or Newsgroups: headers. Date: Thu, 26 Aug 2021 17:49:15 +0000 From: Tavis Ormandy <taviso@gmail.com> References: <slrnsicqp2.277i.lafe@lafelet.lafes.net> <iopue2Fi1i6U1@mid.individual.net> <169eeb491fc33660$1$1669403$cad58068@news.newsdemon.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 Lines: 51 X-Trace: individual.net X1qs/bjwpLQiipdVFxjNvQnkDUxN+hRV3J4lpr3d6piV+MDDVP User-Agent: slrn/1.0.3 (Linux) Newsgroups: news.software.readers Cancel-Lock: sha1:gHwHOZelDTC/3p16+IS8BhDekSI=