🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Joe Hartley Wed, 05 Mar 1997 00:00
Refusing articles based on number of crossposts?
#15534
Author: Joe Hartley
Date: Wed, 05 Mar 1997 00:00
20 lines
1438 bytes
Given the vast amount of sh!+ in news, it occured to me that a fairly
unobtrusive way of reducing this pile o' drek would be to check the
number of groups the article is crossposted to, and if it's greater
than XPOST_LIMIT, dump the puppy into ye olde bit bucket.  Seems
to me that there are very few legitimate posts that go to more than
5 newsgroups, and dumping everything over that would affect real
news hardly at all.

Since there's nothing new under the sun, I was wondering if either
this feature already exists (and I've just been dense and missed it)
or if anyone's ever patched INN to support this type of thing.

-- 
========================================================================
        Joe Hartley - jh@brainiac.com - brainiac services, inc
 PO Box 5069 : Greene, RI : 02827 - vox 401.539.9050 : fax 401.539.2070
  Without deviation from the norm, "progress" is not possible. - FZappa

Re: Refusing articles based on number of crossposts?
#15571
Author: Andrew Gierth
Date: Thu, 06 Mar 1997 00:00
19 lines
1514 bytes
>>>>> "Joe" == Joe Hartley <jh@brainiac.com> writes:

 Joe> Given the vast amount of sh!+ in news, it occured to me that a fairly
 Joe> unobtrusive way of reducing this pile o' drek would be to check the
 Joe> number of groups the article is crossposted to, and if it's greater
 Joe> than XPOST_LIMIT, dump the puppy into ye olde bit bucket.  Seems
 Joe> to me that there are very few legitimate posts that go to more than
 Joe> 5 newsgroups, and dumping everything over that would affect real
 Joe> news hardly at all.

That kills one in 6 of all the news.answers postings, according to stats
recently supplied on faq-maintainers, and probably a number of unapproved
FAQs as well.

-- 
Andrew.

Re: Refusing articles based on number of crossposts?
#15575
Author: James Brister
Date: Thu, 06 Mar 1997 00:00
59 lines
2046 bytes
Joe Hartley <jh@brainiac.com> writes:

[ rejecting articles with massive cross-posts ]

> Since there's nothing new under the sun, I was wondering if either
> this feature already exists (and I've just been dense and missed it)
> or if anyone's ever patched INN to support this type of thing.

There are two answers: use the perl hooks, or run a channel subfeed to
automatically cancel the post. The perl hooks are already there and the
sample will show you what to do. The channel feed would be something as
simple as:

in newsfeeds:

	canceller!:*:Tc,WmN:/usr/local/bin/canceller

and /usr/local/bin/canceller is like:

	#!/usr/bin/perl

	$0 =~ s!.*/!! ;
	$usage = "$0 [ -v -l limit ]\n" ;

	$limit = 6 ; 
	$logfile = "/var/log/news/canceller.log" ;

	require 'getopts.pl' ;

	open (STDOUT,">>$logfile") ; # too bad if it fails.
	open (STDERR,">&STDOUT") ;

	$| = 1 ;

	&Getopts ("vl:") || die $usage ;

	$limit = $opt_l if ($opt_l =~ /^\d+/) ;

	while (<STDIN>) {
		chop ;
		($mid,$ng) = split (' ',$_) ;
		@ng = split (',',$ng) ;
		next if (@ng < $limit) ;

		print "Cancelling (locally) $mid due to these newsgroups: @ng\n" 
			if $opt_v ;

		system ("ctlinnd cancel '$mid'") ;
	}

This works, but is a bit heavy (a ctlinnd exec'd for each article to cancel).

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium    http://www.isc.org/isc   inn@isc.org 

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