🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
16 messages
16 total messages Started by Ignoramus26053 Sun, 07 Mar 2010 06:05
Threading killfile application?
#239980
Author: Ignoramus26053
Date: Sun, 07 Mar 2010 06:05
11 lines
1853 bytes
I am reading a certain newsgroup and there are several readers whom I
consider to be "highly undesirable". What I want is not to see not
only the posts that they make, but also all followups to such posts. 

I understand that I may need a separate killfile app that would work
with a list like that and modify my .newsrc to mark all such articles
as read. 

My question is, is there such an app. 

Thanks
[slrn] Threading killfile application?
#240017
Author: Whiskers
Date: Sun, 07 Mar 2010 14:24
46 lines
3211 bytes
On 2010-03-07, Ignoramus26053 <ignoramus26053@NOSPAM.26053.invalid> wrote:
> I am reading a certain newsgroup and there are several readers whom I
> consider to be "highly undesirable". What I want is not to see not
> only the posts that they make, but also all followups to such posts. 
>
> I understand that I may need a separate killfile app that would work
> with a list like that and modify my .newsrc to mark all such articles
> as read. 
>
> My question is, is there such an app. 
>
> Thanks

I've added the name of your newsreader to the Subject, so that those 
familiar with it are more likely to read the article.

Slrn actually has a very powerful scorefile system - far more flexible 
than any mere 'killfile'.

I think your question is the same as the creator of slrn answered with a 
scoring macro in this article

  Newsgroups: news.software.readers
  From: "John E. Davis" <jed@jedsoft.org>
  Subject: Re: [slrn] turbo-plonk.sl improved (Was: Can I make a rule that
   will auto-ignore all follow-ups to a certain author?)
  Message-ID: <slrnh769m0.nk4.jed@aluche.mit.edu>
  Date: 31 Jul 2009 17:15:44 GMT

archived as <http://al.howardknight.net/msgid.cgi?ID=125901770900>

It may also be worth looking at other posts in that thread, eg on August 
1st (sadly the thread is a bit of a mess):

  From: ShadowTek <ShadowTek@invalid.invalid>
  Message-ID: <slrnh796ag.n0g.ShadowTek@desktop.localdomain>
  <http://al.howardknight.net/msgid.cgi?ID=126797148700>

  From: "John E. Davis" <jed@jedsoft.org>
  Message-ID: <slrnh79e2l.3oi.jed@aluche.mit.edu>
  <http://al.howardknight.net/msgid.cgi?ID=126797169500>

--
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Threading killfile application?
#240022
Author: Mike Dee
Date: Mon, 08 Mar 2010 01:42
42 lines
3031 bytes
Ignoramus26053 wrote:

> I am reading a certain newsgroup and there are several readers whom I
> consider to be "highly undesirable". What I want is not to see not
> only the posts that they make, but also all followups to
> such posts.
> 
> I understand that I may need a separate killfile app that would work
> with a list like that and modify my .newsrc to mark all such articles as
> read.
> 
> My question is, is there such an app.

Yes, you appeared to be already using it when you posted - I don't
think a separate app for kill-filing would be necessary if your news
client is usually slrn.

For a primer and a good introduction to slrn's scoring system:
<http://slrn.sourceforge.net/docs/slrn-FAQ-4.html>

A basic KF on follow-ups can go like this:

[^your\.news\.group\.name$]
  Score:: =-9999
   Message-ID: <some-part-of-M-ID-that-gets-repeated-with-each-post>
   References: <some-part-of-M-ID-that-gets-repeated-with-each-post>

Where this falls down is not every poster will include an identifier in a
M-ID that gets repeated with each post. But if they do, then it is very
easy to not see follow-up posts to someone you have KF'd using slrn, based
on some repeating pattern in your "undesirable" poster's M-ID.

One that is easy to demonstrate is KF'ing posts made from
Google Groups posts and follow-ups to those posts:

  Score:: =-9999
   Message-ID: googlegroups
   References: googlegroups

-- 
dee
Re: [slrn] Threading killfile application?
#240035
Author: Ignoramus8009
Date: Mon, 08 Mar 2010 21:01
60 lines
3763 bytes
Whiskers, this seems to be complicated conceptually and it does not
look like any of those scripts are working. (and I would love to be
priven wrong). 

Here's my own solution: 

Write a perl script that would 

a) Make a list of recent message-ids from "evil" people, based on
xover information
b) Generate a scorefile that bans anything in References: that
includes those message-ids
c) Include that scorefile from the main scorefile
d) Run this perl script automatically often. 

i

On 2010-03-07, Whiskers <catwheezel@operamail.com> wrote:
> On 2010-03-07, Ignoramus26053 <ignoramus26053@NOSPAM.26053.invalid> wrote:
>> I am reading a certain newsgroup and there are several readers whom I
>> consider to be "highly undesirable". What I want is not to see not
>> only the posts that they make, but also all followups to such posts. 
>>
>> I understand that I may need a separate killfile app that would work
>> with a list like that and modify my .newsrc to mark all such articles
>> as read. 
>>
>> My question is, is there such an app. 
>>
>> Thanks
>
> I've added the name of your newsreader to the Subject, so that those 
> familiar with it are more likely to read the article.
>
> Slrn actually has a very powerful scorefile system - far more flexible 
> than any mere 'killfile'.
>
> I think your question is the same as the creator of slrn answered with a 
> scoring macro in this article
>
>   Newsgroups: news.software.readers
>   From: "John E. Davis" <jed@jedsoft.org>
>   Subject: Re: [slrn] turbo-plonk.sl improved (Was: Can I make a rule that
>    will auto-ignore all follow-ups to a certain author?)
>   Message-ID: <slrnh769m0.nk4.jed@aluche.mit.edu>
>   Date: 31 Jul 2009 17:15:44 GMT
>
> archived as <http://al.howardknight.net/msgid.cgi?ID=125901770900>
>
> It may also be worth looking at other posts in that thread, eg on August 
> 1st (sadly the thread is a bit of a mess):
>
>   From: ShadowTek <ShadowTek@invalid.invalid>
>   Message-ID: <slrnh796ag.n0g.ShadowTek@desktop.localdomain>
>  <http://al.howardknight.net/msgid.cgi?ID=126797148700>
>
>   From: "John E. Davis" <jed@jedsoft.org>
>   Message-ID: <slrnh79e2l.3oi.jed@aluche.mit.edu>
>  <http://al.howardknight.net/msgid.cgi?ID=126797169500>
>
Re: [slrn] Threading killfile application?
#240037
Author: Whiskers
Date: Mon, 08 Mar 2010 21:51
55 lines
3601 bytes
[top-posting and lack of snippage rectified]
On 2010-03-08, Ignoramus8009 <ignoramus8009@NOSPAM.8009.invalid> wrote:
> On 2010-03-07, Whiskers <catwheezel@operamail.com> wrote:
>> On 2010-03-07, Ignoramus26053 <ignoramus26053@NOSPAM.26053.invalid> wrote:
>>> I am reading a certain newsgroup and there are several readers whom I
>>> consider to be "highly undesirable". What I want is not to see not
>>> only the posts that they make, but also all followups to such posts. 

[...]

>> Slrn actually has a very powerful scorefile system - far more flexible 
>> than any mere 'killfile'.
>>
>> I think your question is the same as the creator of slrn answered with a 
>> scoring macro in this article
>>
>>   Newsgroups: news.software.readers
>>   From: "John E. Davis" <jed@jedsoft.org>
>>   Subject: Re: [slrn] turbo-plonk.sl improved (Was: Can I make a rule that
>>    will auto-ignore all follow-ups to a certain author?)
>>   Message-ID: <slrnh769m0.nk4.jed@aluche.mit.edu>
>>   Date: 31 Jul 2009 17:15:44 GMT
>>
>> archived as <http://al.howardknight.net/msgid.cgi?ID=125901770900>

[...]

> Whiskers, this seems to be complicated conceptually and it does not
> look like any of those scripts are working. (and I would love to be
> priven wrong). 

The script in JED's article referenced above is working very well indeed
for me.  Are you sure that you've copied it correctly into the directory 
slrn looks at for scripts, and included the appropriate 'interpret' entry 
into ~/.slrnrc?

> Here's my own solution: 
>
> Write a perl script that would 
>
> a) Make a list of recent message-ids from "evil" people, based on
> xover information
> b) Generate a scorefile that bans anything in References: that
> includes those message-ids
> c) Include that scorefile from the main scorefile
> d) Run this perl script automatically often. 
>
> i

I'm not stopping you  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Threading killfile application?
#240038
Author: Lewis
Date: Mon, 08 Mar 2010 23:36
26 lines
2079 bytes
In message <OJqdnajzrt83-AjWnZ2dnUVZ_tidnZ2d@giganews.com> 
  Ignoramus8009 <ignoramus8009@NOSPAM.8009.invalid> wrote:
> Whiskers, this seems to be complicated conceptually and it does not
> look like any of those scripts are working. (and I would love to be
> priven wrong). 

How I do it is by checking the message-id format for the undesirables
and adding those to the kill file.

Something like this:

[teh.newsgroup.to.kill]
Score: -9999
{::
  References: evil.bastard@
  References: stupid.troll@
  References: dumbass@
  Message-ID: evil.bastard@
  Message-ID: stupid.troll@
  Message-ID: dumbass@
}

Kills their posts and kills all posts that reply to them.

-- 
Si Hoc Legere Scis Nimium Eruditionis Habes
Re: [slrn] Threading killfile application?
#240041
Author: Whiskers
Date: Tue, 09 Mar 2010 01:27
32 lines
2533 bytes
On 2010-03-08, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
> In message <OJqdnajzrt83-AjWnZ2dnUVZ_tidnZ2d@giganews.com> 
>   Ignoramus8009 <ignoramus8009@NOSPAM.8009.invalid> wrote:
>> Whiskers, this seems to be complicated conceptually and it does not
>> look like any of those scripts are working. (and I would love to be
>> priven wrong). 
>
> How I do it is by checking the message-id format for the undesirables
> and adding those to the kill file.
>
> Something like this:
>
> [teh.newsgroup.to.kill]
> Score: -9999
> {::
>   References: evil.bastard@
>   References: stupid.troll@
>   References: dumbass@
>   Message-ID: evil.bastard@
>   Message-ID: stupid.troll@
>   Message-ID: dumbass@
> }
>
> Kills their posts and kills all posts that reply to them.

... doesn't work too well when the MIDs lack consistent personal 
identifiers; that's where JED's macro comes into play.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Threading killfile application?
#240045
Author: Ignoramus8009
Date: Tue, 09 Mar 2010 03:02
115 lines
4718 bytes
On 2010-03-08, Whiskers <catwheezel@operamail.com> wrote:
>> Here's my own solution: 
>>
>> Write a perl script that would 
>>
>> a) Make a list of recent message-ids from "evil" people, based on
>> xover information
>> b) Generate a scorefile that bans anything in References: that
>> includes those message-ids
>> c) Include that scorefile from the main scorefile
>> d) Run this perl script automatically often. 
>>
>> i
>
> I'm not stopping you  :))
>

#!/usr/bin/perl

#
# Script to killfile trolls and all followups to their posts
#
# Copyright (C) Igor Chudov, 2010
# Released under GNU Public License v3
#

my $usage = "USAGE: $0 --server news.server.com --user username --password pAssWorD [--style (slrn|ids)]";

use strict;
use warnings;

use Getopt::Long;
use News::NNTPClient;

my $server = undef;
my $username = undef;
my $password = undef;
my $trollfile = "$ENV{HOME}/configs/general/usenet-trolls.txt";
my $style = 'slrn';
my $newsgroups = 'rec.crafts.metalworking,alt.machines.cnc';
my $max = 1_000;

GetOptions(
           "server=s"     => \$server,
           "username=s"   => \$username,
           "password=s"   => \$password,
           "trollfile=s"  => \$trollfile,
           "style=s"      => \$style,
           "max=i"        => \$max,
           "newsgroups=s" => \$newsgroups,
          );

die $usage unless $server && $username && $password;
die $usage unless { slrn => 1, ids => 1 }->{$style};
die "Cannot find file $trollfile" unless -f $trollfile;

my $nntp = new News::NNTPClient( $server )
  || die "Cannot connect to server";
$nntp->authinfo( $username, $password ) || die "Cannot logon to $server";

my $trolls = [];

open( TROLLS, $trollfile ) || die "Cannot open $trollfile: $!.\n";
while( <TROLLS> ) {
  next if /^\s*\#/;
  next if /^\s*$/;
  chomp;
  s/\s*\#.*$//;
  push @$trolls, $_;
}
close( TROLLS );

my @newsgroups = split( /,/, $newsgroups );

foreach my $ng (@newsgroups) {
  my ($start, $end) = $nntp->group( $ng );
  $start = $end-$max if $end-$max > $start;

  next unless $end > $start;

  print STDERR "Analyzing $ng: $start=>$end...\n";
  
  my @fields = qw(numb subj from date mesg refr char line xref);
  foreach my $xover ( $nntp->xover( $start, $end ) ) {
    my %fields = ();
    @fields{@fields} = split /\t/, $xover;
    #print "From = $fields{from}, mesg = $fields{mesg}.\n";
    my $from = $fields{from};
    my $mesg = $fields{mesg};
    my $matches = undef;
    foreach my $troll (@$trolls) {
      my $m = quotemeta( $troll );
      if ( $from =~ /$m/ ) {
        print STDERR "Message from troll $troll ($from) => $mesg\n";
        $matches = 1;
        last;
      }
    }
    if ( $matches ) {
      $mesg =~ s/^<//;
      $mesg =~ s/>$//;
      if ( $style eq 'slrn' ) {
        print "
[*]
Score: -666
 References: $mesg

";
      }
    }
  }

}

exit 0;
--
#240056
Author: Unknown
Date: Tue, 09 Mar 2010 19:16
7 lines
1393 bytes

Mr. Whiskers,  I've reason to believe your “Date:” line is off;
is it generated by slrn ( not Individual.NET ) ?

This post I'm replying to now
( slrnhpb900.5qk.catwheezel@ID-107770.user.individual.net ),
was it made yesterday, March 8th, at 5:27 p.m. Seattle time ?
--
#239991
Author: Unknown
Date: Tue, 09 Mar 2010 19:36
8 lines
1412 bytes

When using TeraNews, I see this post from Mr. Whiskers:

  Date: Tue, 09 Mar 2010 01:27:28 +0000
  X-Received-Date: Tue, 09 Mar 2010 12:47:07 UTC (s02-b71)
  slrnhpb900.5qk.catwheezel@ID-107770.user.individual.net
  
So either it took 11+ hours to arrrive or someone's clock is off.
Re:  Mr. Whiskers, I've reason to believe your “Date:” line is off.
#240058
Author: Whiskers
Date: Tue, 09 Mar 2010 20:04
23 lines
2624 bytes
On 2010-03-09, JeffRelf.F-M.FM    @. <JeffRelf.F-M.FM> wrote:
> 
> Mr. Whiskers,  I've reason to believe your “Date:” line is off;
> is it generated by slrn ( not Individual.NET ) ?

Looks fine to me.  It's generated by slrn from the 'system time' when I 
post from slrn to my local leafnode.  Leafnode in turn posts to 
Individual.net when next it connects - which is set to happen every 20 
minutes while the computer is running, but obviously could be a much 
longer wait if I power down first and go to bed, which might well happen 
at half past one in the morning.

> This post I'm replying to now
> ( slrnhpb900.5qk.catwheezel@ID-107770.user.individual.net ),
> was it made yesterday, March 8th, at 5:27 p.m. Seattle time ?

I think it was made at 27 minutes past one this morning here in London 
(UK).  

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
--
#240059
Author: Unknown
Date: Tue, 09 Mar 2010 21:49
6 lines
1427 bytes

Thanks Mr. Whiskers ( in London ),

I take it you turned off your computer at 5:30 p.m. ( Seattle time;
thus delaying your post ) and then turned it back on at 5 a.m.* today.
*: 12:47 p.m., London
Re:  Re: Mr. Whiskers, I've reason to believe your “Date:” line is off.
#240060
Author: Whiskers
Date: Tue, 09 Mar 2010 22:27
14 lines
2280 bytes
On 2010-03-09, JeffRelf.F-M.FM    @. <JeffRelf.F-M.FM> wrote:
> 
> Thanks Mr. Whiskers ( in London ),
>
> I take it you turned off your computer at 5:30 p.m. ( Seattle time;
> thus delaying your post ) and then turned it back on at 5 a.m.* today.
> *: 12:47 p.m., London

Seems reasonable; sleep, etc.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re:  Re: Mr. Whiskers, I've reason to believe your “Date:� line is off.
#239992
Author: Martin Jay
Date: Wed, 10 Mar 2010 14:06
20 lines
2202 bytes
On Tue, 09 Mar 2010 11:36:25 -0800 (Pacific Standard Time),
JeffRelf.F-M.FM    @. wrote:

>When using TeraNews, I see this post from Mr. Whiskers:
>
>  Date: Tue, 09 Mar 2010 01:27:28 +0000
>  X-Received-Date: Tue, 09 Mar 2010 12:47:07 UTC (s02-b71)
>  slrnhpb900.5qk.catwheezel@ID-107770.user.individual.net
>  
>So either it took 11+ hours to arrrive or someone's clock is off.

Or the author completed the article at 01:27:28 but didn't send it to
a Usenet server until 12:47:07.

All the Usenet articles I write are automatically delayed by up to
twenty minutes, sometimes significantly longer.
-- 
Martin Jay
Back the Ban: <http://www.backtheban.com/>
League Against Cruel Sports: <http://www.league.org.uk/>
Re: Mr. Whiskers, I've reason to believe your "Date:" line is off.
#239994
Author: Gregory Hall
Date: Wed, 10 Mar 2010 18:25
20 lines
1815 bytes
"JeffRelf.F-M.FM   @." wrote in message 
news:JeffRelf.F-M.FM.ES@2010_Mar9.11.36am...
>
> When using TeraNews, I see this post from Mr. Whiskers:
>
>  Date: Tue, 09 Mar 2010 01:27:28 +0000
>  X-Received-Date: Tue, 09 Mar 2010 12:47:07 UTC (s02-b71)
>  slrnhpb900.5qk.catwheezel@ID-107770.user.individual.net
>
> So either it took 11+ hours to arrrive or someone's clock is off.




If you spend your time looking at time stamps then where's your life?

-- 
Gregory Hall 

Re: Threading killfile application?
#240092
Author: Wayne Garmil
Date: Mon, 15 Mar 2010 15:19
32 lines
2467 bytes
On Sun, 07 Mar 2010 00:05:30 -0600, Ignoramus26053
<ignoramus26053@NOSPAM.26053.invalid> wrote:

>I am reading a certain newsgroup and there are several readers whom I
>consider to be "highly undesirable". What I want is not to see not
>only the posts that they make, but also all followups to such posts. 

I am in the same situation.  The solution will probably depend on your
news reader.  In Forte Agent, I can use the ignore sub-thread feature
to kill the troll and all replies to him.

However, I also use trn on a unix shell account.  For trn, my killfile
has something like:

/troll@bite.me/f:J

However, I think that kills all posts in the entire thread, not just
from the troll on down.   That is not what I want (kill the
sub-thread, not the entire thread that the troll posted in).  

Also, the trn kill filter only works so longer as trn sees a post from
the troll, it won't work the next day if there are addition follow-ups
in the troll's thread.

That is the best solution I can give, and it is not much of one.  I
hope what little I know has helped.  I am always looking for better
ways to do usenet filtering.

Wayne

-- 
Never apply a Star Trek solution to a Babylon 5 problem.
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