🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #36627

Re: [slrn] Variables in scorefile?

#36627
From: Lloyd Zusman
Date: Mon, 13 Oct 1997 00:00
51 lines
2533 bytes
On 13 Oct 1997 05:58:35 GMT, Jan Hlavacek <lahvak+n@math.ohio-state.edu> wrote:
> On 13 Oct 1997 05:34:39 GMT, Lloyd Zusman <ljz@asfast.com> wrote:
> >
> > [ ... ]
> >
> > Something like this would do that just fine:
> > 
> > [ ... example deleted to save space ... ]
> > 
> > ... where header(), lines(), newsgroup(), matches(), get_score(), and
> > set_score() are new functions that would be supplied with slrn.  I'm
> > sure that there would be a number of other new functions, as well.
> > 
> 
> You mean like current_newsgroup(),  extract_article_header(),
> get_header_score(),  set_header_score()?

Yes ... I wasn't sure if all these existed already.

> How about something like
> 
> define article_mode_hook ()
> {
>    call ("bob");
>    while (header_down (1)) 
>      {
>        if (is_element (get_current_newsgroup (), GroupList1)
>         {
>           if (is_substr (extract_article_header ("Subject"), "blabla"))
>             {
>                score = get_header_score ();
>                score -= 1000;
>                set_header_score (score);
>             }
> 
>  and so on?

Yes.  Exactly.

Over the next few days, I'll write something in Perl which reads a
score file and produces something like this as output.  Since I don't
use article scoring, could someone email me a fairly extensive (and
correct!) score file that I could use as input during testing?


-- 
 Lloyd Zusman
 ljz@asfast.com

Technical Details
Message-ID: <slrn6444g6.puh.ljz@ljz.asfast.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn63gm05.ad.jbn@pop-a-wheelie.midwest.net> <slrn63gr84.13h.sp_robi@Elvira.home> <slrn63h1ti.ad.jbn@pop-a-wheelie.midwest.net> <slrn63rfmg.bnv.sp_robi@Elvira.home> <slrn63rp0b.411.jbn@pop-a-wheelie.midwest.net> <slrn63sjme.44k.Hubert.Canon@guenievre.irisa.fr> <slrn6429lb.65s.jbn@pop-a-wheelie.midwest.net> <slrn642k1i.fj9.ljz@ljz.asfast.net> <slrn6434a0.6ms.jbn@pop-a-wheelie.midwest.net> <slrn643cih.puh.ljz@ljz.asfast.net> <slrn643e4a.1bj.lahvak+n@math.mps.ohio-state.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6444g6.puh.ljz@ljz.asfast.net>
Subject: Re: [slrn] Variables in scorefile?
Date: Mon, 13 Oct 1997 00:00:00 +0000
From: ljz@asfast.com (Lloyd Zusman)
References: <slrn63gm05.ad.jbn@pop-a-wheelie.midwest.net> <slrn63gr84.13h.sp_robi@Elvira.home> <slrn63h1ti.ad.jbn@pop-a-wheelie.midwest.net> <slrn63rfmg.bnv.sp_robi@Elvira.home> <slrn63rp0b.411.jbn@pop-a-wheelie.midwest.net> <slrn63sjme.44k.Hubert.Canon@guenievre.irisa.fr> <slrn6429lb.65s.jbn@pop-a-wheelie.midwest.net> <slrn642k1i.fj9.ljz@ljz.asfast.net> <slrn6434a0.6ms.jbn@pop-a-wheelie.midwest.net> <slrn643cih.puh.ljz@ljz.asfast.net> <slrn643e4a.1bj.lahvak+n@math.mps.ohio-state.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 280093885
X-Newsgroup: news.software.readers
Organization: As Fast
Reply-To: ljz@asfast.com (Lloyd Zusman)
Newsgroups: news.software.readers