🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84129

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

#84129
From: D. Stussy
Date: Fri, 17 Jun 2011 18:13
31 lines
2384 bytes
Here are my RFC-enforcement-based "bad_from" patterns for cleanfeed:

^@
<>
@\.
^[^@:]+$
@[^(, ]*\.\.
@[[:alnum:]]*@
@(.+\.)?test>?$
@.+\.phx\.gbl>?$
@(.+\.)?[0-9]*>?$
@(.+\.)?ipv6-literal\.net>?$
@(.+\.)?example(\.[a-z]{3,})?>?$
@(.+\.)?local(|host|domain|net)>?$

Explanations:

^@     - May not start with "@"
<>     - No empty mailbox (or DSN)
@\.     - No "@." (NULL domain element)
^[^@:]+$    - Must have "@" or ":"
@[^(, ]*\.\.    - No double ".." (NULL domain element)
@[[:alnum:]]*@    - No double "@@"
@(.+\.)?test>?$    - Reserved TLD.
@.+\.phx\.gbl>?$   - Bogus Microsoft Domain.
@(.+\.)?[0-9]*>?$   - No numeric TLDs.
@(.+\.)?ipv6-literal\.net>?$  - Reserved TLD.
@(.+\.)?example(\.[a-z]{3,})?>?$ - Reserved TLDs.
@(.+\.)?local(|host|domain|net)>?$ - Reserved TLDs.

Technical Details
Message-ID: <itg5el$9v6$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!news-out.octanews.net!indigo.octanews.net!news.glorb.com!news.snarked.org!pool-71-106-211-51.lsanca.dsl-w.verizon.net!not-for-mail
References: <is3slt$d30$1@snarked.org><201106010210.UTC.is472f$e5a$1@tioat.net><94nmn3F51qU1@mid.individual.net><201106021004.UTC.is7n6k$dop$3@tioat.net><87r57c3zir.fsf@windlord.stanford.edu><201106031149.UTC.isahod$7qr$1@tioat.net><87zklyx33u.fsf@windlord.stanford.edu><95gk6pFuo7U1@mid.individual.net> <87sjrgm9ww.fsf@windlord.stanford.edu> <it11au$2n2$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <itg5el$9v6$1@snarked.org>
Subject: Re: Cleanfeed: Looking for regex expression for ....
Date: Fri, 17 Jun 2011 11:13:26 -0700
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <is3slt$d30$1@snarked.org><201106010210.UTC.is472f$e5a$1@tioat.net><94nmn3F51qU1@mid.individual.net><201106021004.UTC.is7n6k$dop$3@tioat.net><87r57c3zir.fsf@windlord.stanford.edu><201106031149.UTC.isahod$7qr$1@tioat.net><87zklyx33u.fsf@windlord.stanford.edu><95gk6pFuo7U1@mid.individual.net> <87sjrgm9ww.fsf@windlord.stanford.edu> <it11au$2n2$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!news-out.octanews.net!indigo.octanews.net!news.glorb.com!news.snarked.org!pool-71-106-211-51.lsanca.dsl-w.verizon.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 31
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
Injection-Date: Fri, 17 Jun 2011 18:12:37 +0000 (UTC)
Injection-Info: snarked.org;
 posting-host="pool-71-106-211-51.lsanca.dsl-w.verizon.net:71.106.211.51";
 logging-data="10214"; mail-complaints-to="newsmaster+complaints@snarked.org"
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478