🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84082

Re: Cleanfeed: Looking for regex expression for ....

#84082
From: Junior
Date: Wed, 01 Jun 2011 02:10
26 lines
2186 bytes
D. Stussy wrote:
> I have recently noticed that there seems to be alot of trolling coming from
> users which have "From:" headers that have no "@" in them.  Is that even
> legal per the standards and RFCs?  I think not.
>
> My first impression was ^[^@]*$ into file bad_from.
>
> However, I did get some strange results.  I next tried "^[^@]+$" to ignore
> the empty header-data case (which should not exist anyway).
>
> I had a few problems with that too.  Further tracing this, I discovered
> that some systems were setting their "Complaints-To" header (or the field
> from "Injection-Info") to an HTTP URL instead of a mailbox address.  I
> check that field against the "bad_from" regex too.
>
> Therefore, my third try is this:  ^[^@:]+$
> or is it better to specify it as     ^[^@:]{1,}$
>
> My goal is to eliminate illegally formatted messages from my server.
> Opinions wanted.

Is this about filtering "trolling" posts or RFC law enforcement?

Also, I'm wondering what would happen if 'we' changed the From
header to HTobs (obsolete header but keep untouched); would this
interfere with the proper operation of INN?
Technical Details
Message-ID: <201106010210.UTC.is472f$e5a$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!goblin2!goblin3!goblin.stu.neva.ru!tioat.net!not-for-mail
References: <is3slt$d30$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <201106010210.UTC.is472f$e5a$1@tioat.net>
Subject: Re: Cleanfeed: Looking for regex expression for ....
Date: Wed, 01 Jun 2011 02:10:23 +0000
From: Junior
References: <is3slt$d30$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!goblin2!goblin3!goblin.stu.neva.ru!tioat.net!not-for-mail
Newsgroups: news.software.nntp,news.admin.net-abuse.usenet
Lines: 26
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Jun 2011 02:10:23 +0000 (UTC)
Injection-Info: tioat.net; posting-host="13ea0559ba455b06f522618b8370562f";
 mail-complaints-to="news_AT_tioat_DOT_net"