Article View: news.software.nntp
Article #84130Re: Cleanfeed: Looking for regex expression for ....
From: Junior
Date: Fri, 17 Jun 2011 22:10
Date: Fri, 17 Jun 2011 22:10
36 lines
2563 bytes
2563 bytes
D. Stussy wrote:
> 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.
I curious if multi-byte character sets in the mailbox address part
of a From header would match any of those. It's getting common to
see UTF-8 and other encodings in the name or pseudonym part but what
about in the address part? There's a rumor that non-ascii based
domains exist so I would guess that email addresses would too.
Technical Details
Message-ID:
<201106172210.UTC.itgjdc$1lf$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!goblin.stu.neva.ru!news.mixmin.net!tioat.net!not-for-mailReferences:
<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> <itg5el$9v6$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <201106172210.UTC.itgjdc$1lf$1@tioat.net> Subject: Re: Cleanfeed: Looking for regex expression for .... Date: Fri, 17 Jun 2011 22:10:52 +0000 From: Junior 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> <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!goblin1!goblin.stu.neva.ru!news.mixmin.net!tioat.net!not-for-mail Newsgroups: news.software.nntp Lines: 36 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Fri, 17 Jun 2011 22:10:52 +0000 (UTC) Injection-Info: tioat.net; posting-host="13ea0559ba455b06f522618b8370562f"; mail-complaints-to="news_AT_tioat_DOT_net"