🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #13317

Re: limiting crosposted articles ?

#13317
From: darrell
Date: Mon, 16 Dec 1996 00:00
27 lines
1234 bytes
rtripp2@communique.net (Roy Tripp III) writes:


> 	Is there a simple way to reject articles that are heavely
> 	crossposted ?
> 
> 	ie, if an articles is crossposted to more than 4 groups, I
> 	would like to reject it, (or maybe post it to the first 4 groups

if you build INN 1.5 with the TCL module:

proc filter_news {} {
  global Headers
  set newsgroups [split $Headers(Newsgroups) ,]
  if {[llength $newsgroups] > 4} {
      return "Excessively Crossposted"
  }
  return "accept"
}

I don't know if the TCL modules allows headers to be edited
before the article is processed.  I suspect not.

Darrell Fuhriman

Technical Details
Message-ID: <qzrakqf0vz.fsf@structured.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5941f3$ej5$1@kiyoko.communique.net>

Show Full Headers
Complete Article Headers
Message-ID: <qzrakqf0vz.fsf@structured.net>
Subject: Re: limiting crosposted articles ?
Date: Mon, 16 Dec 1996 00:00:00 +0000
From: darrell@structured.net
References: <5941f3$ej5$1@kiyoko.communique.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 204523245
Sender: darrell@artful
To: rtripp2@communique.net (Roy Tripp III)
Organization: As if..
Newsgroups: news.software.nntp