🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by Kaz Kylheku Fri, 18 Aug 2000 00:00
[slrn] scoring feature idea
#64607
Author: Kaz Kylheku
Date: Fri, 18 Aug 2000 00:00
29 lines
1991 bytes
It would be nice, in a slrn score file entry, to have some syntax for referring
to attributes of the parent articles. For example some special prefix symbol,
like @.

Thus the entry:

	Score: -9999
	@From: <idiot@moron.com>

would mean: add the score -9999 to the article, if the header of its *parent*
article matches the pattern in its From: line. Or, better yet, this form should
should search *all* of the references recursively looking for a match. Some way
of specifying the maximum depth would probably be useful, so that if
an article is two or three reply chains removed from the undesirable poster,
it won't be scored.

This would be useful for squashing any followups to postings from
<idiot@moron.com> (in addition to having a specific score entry to kill
articles from that user).

An alternate useful feature might be for a score file entry to have a way to
propagate its score to all followups, to a specified depth.

-- 
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.

Re: [slrn] scoring feature idea
#64636
Author: Christian Perrier
Date: Sat, 19 Aug 2000 00:00
105 lines
4078 bytes
Kaz Kylheku <kaz@ashi.footprints.net> wrote :

>It would be nice, in a slrn score file entry, to have some syntax for referring
>to attributes of the parent articles. For example some special prefix symbol,
>like @.

For such purposes, I use the included macro. The idea is to "open"
the article from idiot@moron.com and then launch the macro (I do
this by assigning Ctrl-K to the macro).

You can combine this with an automatic system for removing expired entries
from your score file...like Felix Schueller's cleanscore.pl

I am not the original author of this. I only adapted it to my needs.
Unfortunately, I did not keep track of original authors (who are 
regular readers of this group). Apologies to them.

This only works on a Unix system with GNU 'date' installed (it is
maybe OK with Cygnus port of GNU date on NT with some
modifications). One has first to define a call_external function,
designed to cal an external command and return its output.

%  implements ("my");
  define call_external (cmd)
  {
     variable
       tempfile = "/tmp/tempfile",
       retval = Global->system (sprintf ("%s >%s", cmd, tempfile)),
       fp = fopen (tempfile, "r"),
       contents = "";

     if (fp == NULL) error ("Can\'t open temp file: " + errno_string (errno));
     foreach (fp) using ("line") contents += ();
     if (fclose (fp) == -1)
       error ("Can\'t close temp file: " + errno_string (errno));

%     return (retval, contents);
     return (contents);
  }

  % test the code out, show how it works.
%  variable r, c;
%  (r,c) = my->system ("ls");
%  vmessage ("return value: %d", r);
%  message (c);





define kill_thread ()
{
variable scorefile = "/home/bubulle/News/Score";   % <= EDIT THIS LINE!
variable killthread_score = "-100" ; 
variable killthread_duration = "30 days" ;
   if (is_group_mode ())
     error (_function_name () + " doesn\'t work in group mode.");%

   variable fp = fopen (scorefile, "a");
   % variable fp = fopen (get_variable_value ("scorefile"), "a");
   if (fp == NULL) error ("Couldn\'t open scorefile: " + errno_string (errno));

   variable line;
%   foreach (["[*] % Killing " + extract_article_header ("Subject"),
   foreach ([
	     "",
	     "[" + extract_article_header ("Newsgroups") + "]",
	     "  % Killing thread : " + extract_article_header ("Subject"),
	     "    Score:: =" + killthread_score,
	     "    Expires: " + string (call_external ("date --date='" + killthread_duration +"' +%d-%m-%Y"))
	     ])
    { 
	line = () + "\n";
	if (-1 == fputs (line, fp))
	  error ("Can\'t write to scorefile: " + errno_string (errno));
     }

   variable
     msgID,
     header = "References",
     refs = extract_article_header (header);

   !if (strlen (refs))                           % Must be a thread-starter
     {
	header = "Message-ID";
	refs = extract_article_header (header);
     }
   foreach (strtok (refs))
     {
	msgID = ();
	if (-1 == fputs (sprintf ("       %s: %s\n", header, msgID), fp))
	  error ("Can\'t write to scorefile: " + errno_string (errno));
     }

   if (-1 == fclose (fp))
     error ("Can\'t close scorefile: " + errno_string (errno));
}


definekey ("kill_thread", "^K", "article");




Re: [slrn] scoring feature idea
#64641
Author: Kaz Kylheku
Date: Sat, 19 Aug 2000 00:00
10 lines
1445 bytes
On 19 Aug 2000 07:18:56 GMT, Martien Verbruggen <mgjv@martien.heliotrope.home>
wrote:
>I have more precise filters on the References header that include the
>more specific 'mgjv@.*\.heliotrope.home', 'mgjv@.*comdyn\.com\.au' and
>'mgjv@.*tradingpost\.com\.au'. Anyone can be as precise as they want :)

Of course, this is only applicable if the message ID contains some scrap of the
originator's identity, which is, unfortunately, often not the case!

Re: [slrn] scoring feature idea
#64648
Author: Martien Verbruggen
Date: Sat, 19 Aug 2000 00:00
49 lines
2804 bytes
On 19 Aug 2000 11:55:20 GMT,
	Gary Jones <garydjones@hotmail.com> wrote:
> Martien Verbruggen wrote:
> > On Fri, 18 Aug 2000 19:33:33 GMT,
> > 	Kaz Kylheku <kaz@ashi.footprints.net> wrote:
> > 
> > > It would be nice, in a slrn score file entry, to have some syntax for
> > > referring to attributes of the parent articles. For example some
> > > special prefix symbol, like @.
> 
> Not all posting agents maintain the same References entries, so some
> unwanted articles would get through. One instance know of (*cough*a build of
> tin*cough) sometimes strips off the latest (or first, I forget now) entry :-(
> 
> > For the idea you suggest, just looking at the References headers might
> > be sufficient. I use something like:
> > 
> > Score:: =2500
> > 	References: tradingpost\.com\.au
> > 
> > To score up any articles that refer to one of mine (in most groups I
> > read I am the only person with this domain).
> 
> I think Kaz wants something which can also be applied to someone posting
> whose M-IDs do not follow a pattern unique to them. Killfiling you and FUs
> to you would be easy, but it wouldn't be so easy to killfile FUs to me
> because I do not generate my own M-IDs.

*nod* 

As I mentioned before, I believe that the only way to solve this would
be to have some score-by-thread[1] feature, which would need some local
file that would keep all message headers, like the slrnpull overview
files, and use those to find relationships between articles.

Is that a correct assumption, or does anyone see a simpler method, that
doesn't require the newsreader to go off to the server for this
information?

Martien

[1] Or sub-thread
-- 
Martien Verbruggen              | 
Interactive Media Division      | Freudian slip: when you say one thing
Commercial Dynamics Pty. Ltd.   | but mean your mother.
NSW, Australia                  | 

Re: [slrn] scoring feature idea
#64649
Author: Martien Verbruggen
Date: Sat, 19 Aug 2000 00:00
36 lines
2225 bytes
On Sat, 19 Aug 2000 03:04:44 GMT,
	Kaz Kylheku <kaz@ashi.footprints.net> wrote:
> On 19 Aug 2000 01:19:25 GMT, Martien Verbruggen <mgjv@martien.heliotrope.home>
> wrote:
> >For the idea you suggest, just looking at the References headers might
> >be sufficient. I use something like:
> 
> I already do that.
> 
> >Score:: =2500
> >	References: tradingpost\.com\.au
> 
> Doing this to filter out followups is not accurate, because it's not
> specific to the individual. You are blocking everyone posting from
> a given server, which is not fair. In some cases, the ``server''
> might be some big news service with countless subscribers. 

I know that. In fact, in my post I qualified this line with:

>> To score up any articles that refer to one of mine (in most groups I
>> read I am the only person with this domain).

> I'd like to be precise.

I have more precise filters on the References header that include the
more specific 'mgjv@.*\.heliotrope.home', 'mgjv@.*comdyn\.com\.au' and
'mgjv@.*tradingpost\.com\.au'. Anyone can be as precise as they want :)

Martien
-- 
Martien Verbruggen              | 
Interactive Media Division      | Failure is not an option. It comes
Commercial Dynamics Pty. Ltd.   | bundled with your Microsoft product.
NSW, Australia                  | 

Re: [slrn] scoring feature idea
#64655
Author: Martien Verbruggen
Date: Sat, 19 Aug 2000 01:19
65 lines
3964 bytes
On Fri, 18 Aug 2000 19:33:33 GMT,
	Kaz Kylheku <kaz@ashi.footprints.net> wrote:

> It would be nice, in a slrn score file entry, to have some syntax for
> referring to attributes of the parent articles. For example some
> special prefix symbol, like @.
> 
> Thus the entry:
> 
> 	Score: -9999 @From: <idiot@moron.com>
> 
> would mean: add the score -9999 to the article, if the header of its
> *parent* article matches the pattern in its From: line. Or, better
> yet, this form should should search *all* of the references
> recursively looking for a match. Some way of specifying the maximum
> depth would probably be useful, so that if an article is two or three
> reply chains removed from the undesirable poster, it won't be scored.

I thought about that for a while, because I used to use a newsreader
that would score threads, based on articles in the thread. This  idea
comes very close to it. It would require slrn to keep a local cache of
headers with history. Anyone using slrnpull knows that most of the code
to support that is already written (reading and writing of overview
files). The difficulty is going to be in writing new scoring code that
does these things. Mind you, you'd need to want to score per thread. 

For the idea you suggest, just looking at the References headers might
be sufficient. I use something like:

Score:: =2500
	References: tradingpost\.com\.au

To score up any articles that refer to one of mine (in most groups I
read I am the only person with this domain).

> This would be useful for squashing any followups to postings from
> <idiot@moron.com> (in addition to having a specific score entry to kill
> articles from that user).

It is, but you can also use the references field for that, and in fact,
I have a few of those entries in my score file as well,

> An alternate useful feature might be for a score file entry to have a way to
> propagate its score to all followups, to a specified depth.

That is more useful, and comes closer to the 'thread-scoring' that I had
in mind. Kill a whole thread, upwards, and downwards, if something in
there gets matched, or alternatively, score it upwards when I posted in
it.

Having the local copy of the headers available, historically, also makes
it much easier and faster to reconsitute a comple thread (ESC-1-ESC-P).
One of the reasons I use slrnpull is to be able to simply do that. It
would be nice if slrn, optionally, would do this. Heck, if there's
enough positive response to this, I'll have a look at it mysefl again.
Last time I looked, I gave up because of other, pressing engagements,
and because I didn't know about how slrnpull worked, yet. 

Martien
-- 
Martien Verbruggen              | 
Interactive Media Division      | Freudian slip: when you say one thing
Commercial Dynamics Pty. Ltd.   | but mean your mother.
NSW, Australia                  | 
Re: [slrn] scoring feature idea
#64662
Author: Kaz Kylheku
Date: Sat, 19 Aug 2000 03:04
23 lines
1867 bytes
On 19 Aug 2000 01:19:25 GMT, Martien Verbruggen <mgjv@martien.heliotrope.home>
wrote:
>For the idea you suggest, just looking at the References headers might
>be sufficient. I use something like:

I already do that.

>
>Score:: =2500
>	References: tradingpost\.com\.au

Doing this to filter out followups is not accurate, because it's not
specific to the individual. You are blocking everyone posting from
a given server, which is not fair. In some cases, the ``server''
might be some big news service with countless subscribers. 

I'd like to be precise.

-- 
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.
Re: [slrn] scoring feature idea
#64679
Author: Martien Verbruggen
Date: Sun, 20 Aug 2000 01:01
24 lines
2070 bytes
On Sat, 19 Aug 2000 16:30:55 GMT,
	Kaz Kylheku <kaz@ashi.footprints.net> wrote:
> On 19 Aug 2000 07:18:56 GMT, Martien Verbruggen <mgjv@martien.heliotrope.home>
> wrote:

> >I have more precise filters on the References header that include the
> >more specific 'mgjv@.*\.heliotrope.home', 'mgjv@.*comdyn\.com\.au'
> >and 'mgjv@.*tradingpost\.com\.au'. Anyone can be as precise as they
> >want :)
> 
> Of course, this is only applicable if the message ID contains some
> scrap of the originator's identity, which is, unfortunately, often not
> the case!

I already conceded that point. This particular example I used was to
score followups to my own posts. I control the message Ids.

Martien
-- 
Martien Verbruggen              | 
Interactive Media Division      | In a world without fences, who needs
Commercial Dynamics Pty. Ltd.   | Gates?
NSW, Australia                  | 
Re: [slrn] scoring feature idea
#64713
Author: Thomas Schultz
Date: Mon, 21 Aug 2000 00:00
17 lines
1394 bytes
On 18 August 2000 at 19:33 GMT, Kaz Kylheku <kaz@ashi.footprints.net> wrote:

> It would be nice, in a slrn score file entry, to have some syntax for
> referring to attributes of the parent articles. For example some
> special prefix symbol, like @. [...]

I described the basic ideas mentioned in this thread on our wishlist
page: http://slrn.sourceforge.net/wishlist.html#subsect_score_thread
I tried to keep the text short; just tell me if you feel I missed
something essential.
-- 
Thomas Schultz <tststs@gmx.de>
*** Latest news from http://slrn.sourceforge.net/
 -> [2000-08-16] Macros page online
 -> [2000-08-05] www.slrn.org points to our new site

Re: [slrn] scoring feature idea
#64747
Author: John E. Davis
Date: Tue, 22 Aug 2000 00:00
18 lines
1236 bytes
On 19 Aug 2000 08:22:30 GMT, Christian Perrier <bubulle@mykerinos.kheops.frmug.org>
wrote:
>This only works on a Unix system with GNU 'date' installed (it is
>maybe OK with Cygnus port of GNU date on NT with some

This can be achieved directly in slang without the need to call an
external program, e.g.,

   tm = localtime (_time () + 30 * (24 * 3600));
   vmessage ("%02d-%02d-%d", tm.tm_mday, 1+tm.tm_mon, 1900 + tm.tm_year);

is equivalent to calling GNU date via:

   date --date="+30 days" "+%d-%m-%Y"

--John

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads