🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.admin
Article #19

Re: Killfiling Spam

#19
From: The Renaissance Man
Date: Sat, 16 Mar 1996 00:00
41 lines
2234 bytes
Quoth Zenin <zenin@best.com>:
] The Renaissance Man <alaric@babylon5.babcom.com> wrote:
] 	>snip<
] : But I digress.  I've been trying to figure out a killfile regexp that 
] : will kill any article whose newsgroups line contains more than five 
] : commas, but so far without success.  Can anyone advise?
] 
] 	You don't play with camels much, do you? <evil, maniacal grin>
] 
] 	DANGER! -Quick, /untested/, perl hack follows...
] --------------------------------------------------------------------
] 	#!/usr/bin/perl
] 
] 	$_ = `grep '^Newsgroups: ' $directory/$message-number`;
] 	s/^Newsgroups: //;
] 
] 	if(split(/,/) > 5) {
] 	  unlink($directory/$message-number);
] 	}
] --------------------------------------------------------------------



Actually, I just finished my Suck patch, and in preliminary testing it 
appears to be working.  I can now tell my news system to simply not 
download any message crossposted to more than N groups (currently set to 
10, and will be reduced if necessary).


I'll be making the patch available soon.........


-- 
 ****  Free Speech on the Internet!! Support the Blue Ribbon Protest!!  ****
 Yes, the Constitution is a radical  | Phil Stracchino : The Renaissance Man
 document.  It was SUPPOSED to be.   | Creator, alt.support.survivors.prozac
 A president who says that America   | Babylon Project System Administrator
 can no longer afford the freedoms   | Finger for PGP 2.6.x public key
 in the Constitution, is a President | http://www.babcom.com/
 that America can no longer afford.  | http://www.babcom.com/jwz/alaric/
 **** NRA : NRA-ILA : NRA-SATF : GOA : GOC : CRPA : CCRKBA : SAF : LEAA ****
Technical Details
Message-ID: <4ifpj5$6i7@babylon5.babcom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4ifkb9$51a@babylon5.babcom.com> <4ifmit$22q@nntp1.best.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9f6d,4efe58a2c8eea69e,start
X-Google-Attributes: gidf9f6d,public
X-Google-Thread: 100df9,4efe58a2c8eea69e,start
X-Google-Attributes: gid100df9,public
From: alaric@babylon5.babcom.com (The Renaissance Man)
Subject: Re: Killfiling Spam
Date: 1996/03/16
Message-ID: <4ifpj5$6i7@babylon5.babcom.com>
X-Deja-AN: 143191727
references: <4ifkb9$51a@babylon5.babcom.com> <4ifmit$22q@nntp1.best.com>
organization: The Babylon Project
newsgroups: comp.os.linux.admin,best.general