Thread View: news.software.readers
11 messages
11 total messages
Started by Ignoramus8009
Tue, 09 Mar 2010 02:32
Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: Ignoramus8009
Date: Tue, 09 Mar 2010 02:32
Date: Tue, 09 Mar 2010 02:32
123 lines
5092 bytes
5092 bytes
There are a few posters, who I personally find extremely annoying
because they never say anything that I am interested in, and yet they
have great skills at stirring the pot among one or several newsgroups,
so then discussions drag in more and more people.
Two examples I can give is Cliff and "Burled Frau".
Killfiling just them accomplishes not so much, because other people
follow up and I see all that crap. Killfiling crossposted newsgroups
is somewhat more effective, but not 100% effective.
I wrote a perl script to address it. It scans selected newsgroups
newsgroup, finds all Message-IDs posted by designated people (listed
in a separate file), and generates a slrn scorefile that killfiles
everything that has those message-IDs in References. So it kills not
only their posts, but all followups to such posts.
The generated scorefile is meant to be included from your main
Scorefile by means of "include" directive.
I am including this script below. I expect to improve it as time goes
on.
######################################################################
#!/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;
Re: Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: Artemus
Date: Tue, 09 Mar 2010 03:28
Date: Tue, 09 Mar 2010 03:28
20 lines
2192 bytes
2192 bytes
"Ignoramus8009" <ignoramus8009@NOSPAM.8009.invalid> wrote in message news:naqdnQEHz8qoLgjWnZ2dnUVZ_qadnZ2d@giganews.com... > There are a few posters, who I personally find extremely annoying > because they never say anything that I am interested in, and yet they > have great skills at stirring the pot among one or several newsgroups, > so then discussions drag in more and more people. > > Two examples I can give is Cliff and "Burled Frau". > > Killfiling just them accomplishes not so much, because other people > follow up and I see all that crap. Killfiling crossposted newsgroups > is somewhat more effective, but not 100% effective. > Wouldn't it be just as good, and maybe simpler, to identify any msg posted by "asswipe" and then filter out all subsequent posts with the same subject? Art
Re: Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: Ignoramus8009
Date: Tue, 09 Mar 2010 03:30
Date: Tue, 09 Mar 2010 03:30
23 lines
2585 bytes
2585 bytes
On 2010-03-09, Artemus <bogus@invalid.org> wrote: > > "Ignoramus8009" <ignoramus8009@NOSPAM.8009.invalid> wrote in message > news:naqdnQEHz8qoLgjWnZ2dnUVZ_qadnZ2d@giganews.com... >> There are a few posters, who I personally find extremely annoying >> because they never say anything that I am interested in, and yet they >> have great skills at stirring the pot among one or several newsgroups, >> so then discussions drag in more and more people. >> >> Two examples I can give is Cliff and "Burled Frau". >> >> Killfiling just them accomplishes not so much, because other people >> follow up and I see all that crap. Killfiling crossposted newsgroups >> is somewhat more effective, but not 100% effective. >> > Wouldn't it be just as good, and maybe simpler, to identify any msg > posted by "asswipe" and then filter out all subsequent posts with the > same subject? The script does something more precise, and better, without any manual killfiling efforts. i
Re: Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: VanguardLH
Date: Tue, 09 Mar 2010 04:10
Date: Tue, 09 Mar 2010 04:10
30 lines
3155 bytes
3155 bytes
NOTE: Improper cross-posting to UNRELATED newsgroups (a trollish behavior)
was corrected by removing the following newsgroup from my reply:
rec.crafts.metalworking
Ignoramus8009 wrote:
> There are a few posters, who I personally find extremely annoying ...
> Killfiling just them accomplishes not so much, because other people
> follow up and I see all that crap. ...
> I wrote a perl script ...
The rest of us find more efficient means of killfiling, like using a
newsreader that can not only tag on a matching post can tag the entire
[sub]thread started by the unwanted post. Once tagged (ignored), use a view
that hides all the tagged (ignored) threads. Poof, all gone. No scripting.
No need to run an external script before starting the newsreader. Far more
efficient. All I needed was a newsreader that tagged a post and EVERY reply
to it. I just can't believe that my choice for newsreader is the only one
with this feature (where the Watch/Ignore flag works on subthreads).
I suppose if I had to bone up on Perl that I might do something similar as
simply an exercise to see if I could do it and do it right. Right now I'm
focusing on refreshing C++, hewing away at C#, touching on Python, and
eventually I'll get to back to Perl - but not for goals where I have the
means to do the accomplish the same effect with much less effort.
Didn't realize slrn was deficient as you have described but then I've not
have to occasion to trial that newsreader (probably won't get to it, either,
with being too busy with other goals).
Re: Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: Ignoramus8009
Date: Tue, 09 Mar 2010 05:48
Date: Tue, 09 Mar 2010 05:48
49 lines
3530 bytes
3530 bytes
On 2010-03-09, VanguardLH <V@nguard.LH> wrote: > NOTE: Improper cross-posting to UNRELATED newsgroups (a trollish behavior) > was corrected by removing the following newsgroup from my reply: > > rec.crafts.metalworking > > Ignoramus8009 wrote: > >> There are a few posters, who I personally find extremely annoying ... >> Killfiling just them accomplishes not so much, because other people >> follow up and I see all that crap. ... >> I wrote a perl script ... > > The rest of us find more efficient means of killfiling, like using a > newsreader that can not only tag on a matching post can tag the entire > [sub]thread started by the unwanted post. That requires a user action. Use of my script, when cronned, requires no action. > Once tagged (ignored), use a view that hides all the tagged > (ignored) threads. Poof, all gone. No scripting. No need to run > an external script before starting the newsreader. I now rnu my script from cron, and, in any case, running it before a newsreader is as easy as running the newsreader alone. All that is needed is a shell function. > Far more efficient. All I needed was a newsreader that tagged a > post and EVERY reply to it. I just can't believe that my choice for > newsreader is the only one with this feature (where the Watch/Ignore > flag works on subthreads). > > I suppose if I had to bone up on Perl that I might do something similar as > simply an exercise to see if I could do it and do it right. Right now I'm > focusing on refreshing C++, hewing away at C#, touching on Python, and > eventually I'll get to back to Perl - but not for goals where I have the > means to do the accomplish the same effect with much less effort. It is not the same exactly. Anyway, of the languages mentioned above, I live and breathe Perl and C++. > Didn't realize slrn was deficient as you have described but then > I've not have to occasion to trial that newsreader (probably won't > get to it, either, with being too busy with other goals). Sure, to each his own. i
Re: Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: houghi
Date: Tue, 09 Mar 2010 12:34
Date: Tue, 09 Mar 2010 12:34
31 lines
2963 bytes
2963 bytes
Ignoramus8009 wrote: >> Once tagged (ignored), use a view that hides all the tagged >> (ignored) threads. Poof, all gone. No scripting. No need to run >> an external script before starting the newsreader. > > I now rnu my script from cron, and, in any case, running it before a > newsreader is as easy as running the newsreader alone. All that is > needed is a shell function. Great that it works for you and thanks for sharing. I will now explain why I would not use it: 1) I leave my newsreader on all the time. So running it when I start is not an option. 2) I do not like to run scripts unnneeded. So if I would run a cron job, I would need to do it a lot of the time, as I would not want to see the messages in between. Also I would not like to abuse cycles if perhaps nothing needs to be filterd. The cron could be changed by running it right after fetchnews runs. However I still would be running a script very often for no reason. Most people won't have an issue with that, but I do. I am silly that way. ;-) That said, it is indeed unfortunate that slrn can't easily filter things below whatever you decide (as far as I know). houghi -- ________________________ Open your eyes, open your mind | proud like a god don't pretend to be blind | trapped in yourself, break out instead http://openSUSE.org | beat the machine that works in your head
Re: Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: Whiskers
Date: Tue, 09 Mar 2010 13:49
Date: Tue, 09 Mar 2010 13:49
42 lines
3507 bytes
3507 bytes
On 2010-03-09, VanguardLH <V@nguard.LH> wrote: > NOTE: Improper cross-posting to UNRELATED newsgroups (a trollish behavior) > was corrected by removing the following newsgroup from my reply: > > rec.crafts.metalworking > > Ignoramus8009 wrote: > >> There are a few posters, who I personally find extremely annoying ... >> Killfiling just them accomplishes not so much, because other people >> follow up and I see all that crap. ... >> I wrote a perl script ... > > The rest of us find more efficient means of killfiling, like using a > newsreader that can not only tag on a matching post can tag the entire > [sub]thread started by the unwanted post. Once tagged (ignored), use a view > that hides all the tagged (ignored) threads. Poof, all gone. No scripting. > No need to run an external script before starting the newsreader. Far more > efficient. All I needed was a newsreader that tagged a post and EVERY reply > to it. I just can't believe that my choice for newsreader is the only one > with this feature (where the Watch/Ignore flag works on subthreads). Slrn can do that very well; but Ignoramus8009 doesn't want to do that. > I suppose if I had to bone up on Perl that I might do something similar as > simply an exercise to see if I could do it and do it right. Right now I'm > focusing on refreshing C++, hewing away at C#, touching on Python, and > eventually I'll get to back to Perl - but not for goals where I have the > means to do the accomplish the same effect with much less effort. > > Didn't realize slrn was deficient as you have described but then I've not > have to occasion to trial that newsreader (probably won't get to it, either, > with being too busy with other goals). I think you've misunderstood exactly what the poster is trying to do. As it happens, slrn can do that too using a macro devised by its author - see <http://al.howardknight.net/msgid.cgi?ID=125901770900>. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: Whiskers
Date: Tue, 09 Mar 2010 13:56
Date: Tue, 09 Mar 2010 13:56
37 lines
2919 bytes
2919 bytes
On 2010-03-09, Ignoramus8009 <ignoramus8009@NOSPAM.8009.invalid> wrote: > On 2010-03-09, VanguardLH <V@nguard.LH> wrote: >> NOTE: Improper cross-posting to UNRELATED newsgroups (a trollish behavior) >> was corrected by removing the following newsgroup from my reply: >> >> rec.crafts.metalworking >> >> Ignoramus8009 wrote: >> >>> There are a few posters, who I personally find extremely annoying ... >>> Killfiling just them accomplishes not so much, because other people >>> follow up and I see all that crap. ... >>> I wrote a perl script ... >> >> The rest of us find more efficient means of killfiling, like using a >> newsreader that can not only tag on a matching post can tag the entire >> [sub]thread started by the unwanted post. > > That requires a user action. Use of my script, when cronned, requires > no action. Your script does require a user action - creating and editing a file containing a list of all the 'identities' you want it to operate with. JED's macro helps automate that, by using the existing scorefile to contain the list. This means that you can add to your list 'on the fly' while reading a newsgroup and have it applied instantly. [...] Where an external cronned script could be useful, is to remove 'expired' entries from slrn's scorefile. Such a script has existed for a long time, and may be included in your slrn package already. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: Whiskers
Date: Tue, 09 Mar 2010 14:01
Date: Tue, 09 Mar 2010 14:01
18 lines
1933 bytes
1933 bytes
On 2010-03-09, houghi <houghi@houghi.org.invalid> wrote: > Ignoramus8009 wrote: [...] > That said, it is indeed unfortunate that slrn can't easily filter things > below whatever you decide (as far as I know). > > houghi The slrn macro in JED's article <http://al.howardknight.net/msgid.cgi?ID=125901770900> seems to do exactly what Ignoramus8009 wants, and it works very well for me. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: VanguardLH
Date: Thu, 11 Mar 2010 03:23
Date: Thu, 11 Mar 2010 03:23
57 lines
4128 bytes
4128 bytes
Ignoramus8009 wrote: > On 2010-03-09, VanguardLH <V@nguard.LH> wrote: >> NOTE: Improper cross-posting to UNRELATED newsgroups (a trollish behavior) >> was corrected by removing the following newsgroup from my reply: >> >> rec.crafts.metalworking >> >> Ignoramus8009 wrote: >> >>> There are a few posters, who I personally find extremely annoying ... >>> Killfiling just them accomplishes not so much, because other people >>> follow up and I see all that crap. ... >>> I wrote a perl script ... >> >> The rest of us find more efficient means of killfiling, like using a >> newsreader that can not only tag on a matching post can tag the entire >> [sub]thread started by the unwanted post. > > That requires a user action. Use of my script, when cronned, requires > no action. Wow, where to do find that magic wizard that generates script without any effort on my part along with editing it later to maintain a list of unwanted sources? > I now rnu my script from cron, and, in any case, running it before a > newsreader is as easy as running the newsreader alone. All that is > needed is a shell function. So if you run your newsreader before the next chron'ed run of your script, you haven't yet tagged/deleted those unwanted posts that showed up since the last chron run of your script. I suppose you could run the script every 1 to 5 seconds. > It is not the same exactly. Anyway, of the languages mentioned above, > I live and breathe Perl and C++. So even you recognize that the effort to first write and then debug your code required your time and effort, and they you have to maintain your script. Yes, we newsreader users also have to maintain our killfile but all we have to do is add a regex expression. We eliminate the up-front effort of writing the script. Since the kill filter works automatically for us, we don't need to use cron (which is irrelevant because killfiling only has scope when the newsreader is loaded). However, you probably had some fun writing your Perl script and perhaps learned a little as you went along. Sometimes we do things for fun, not because they are more efficient. >> Didn't realize slrn was deficient as you have described but then >> I've not have to occasion to trial that newsreader (probably won't >> get to it, either, with being too busy with other goals). > > Sure, to each his own. Actually I was curious. slrn cannot tag an entire subthread as ignored once a post is marked ignored, or apply additional scoring on the posts in a subthread under the targeted post?
Re: Bye-bye, annoying survivalism and rush-limbaugh trolls
Author: Whiskers
Date: Thu, 11 Mar 2010 13:05
Date: Thu, 11 Mar 2010 13:05
15 lines
1910 bytes
1910 bytes
On 2010-03-11, VanguardLH <V@nguard.LH> wrote: > Ignoramus8009 wrote: [...] > Actually I was curious. slrn cannot tag an entire subthread as ignored once > a post is marked ignored, or apply additional scoring on the posts in a > subthread under the targeted post? Of course it can! -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
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