Article View: news.software.nntp
Article #84139Re: Cleanfeed and headers.
From: Junior
Date: Fri, 24 Jun 2011 09:51
Date: Fri, 24 Jun 2011 09:51
19 lines
2060 bytes
2060 bytes
D. Stussy wrote: > As I understand how headers are stored under perl and the cleanfeed filter, > it's an associative array, with the header name as the "index." However, > does that permit an easy way to determine whether a header exists when > using a regex to match the header name, not knowing the specific header > name in advance? All I can think of is a loop cycling through the array, > testing for a match one at a time. Perl is known for efficiency better > than that, so is there a better way? > > Why do I ask? Because some (well, at least one) of our trolls out there > have resulted to using headers like "X-.*f.ck.*" (replace the lone period > with "u") and other nasty words which would never appear in any "legitimate > use" extended header. Although posted to some of the "sewer" groups, I am > of the opinion that perhaps accepting such is accepting too much, > especially when one has 20+ of those headers in a single message. > > Thoughts? Try not to overthink things?
Technical Details
Message-ID:
<201106240951.UTC.iu1mn4$nmv$1@tioat.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!news.mixmin.net!tioat.net!not-for-mailReferences:
<iu1bv3$o9b$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <201106240951.UTC.iu1mn4$nmv$1@tioat.net> Subject: Re: Cleanfeed and headers. Date: Fri, 24 Jun 2011 09:51:32 +0000 From: Junior :) References: <iu1bv3$o9b$1@snarked.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!news.mixmin.net!tioat.net!not-for-mail Newsgroups: news.software.nntp,news.admin.net-abuse.usenet Lines: 19 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Fri, 24 Jun 2011 09:51:32 +0000 (UTC) Injection-Info: tioat.net; posting-host="13ea0559ba455b06f522618b8370562f"; mail-complaints-to="news_AT_tioat_DOT_net"