Article View: news.software.nntp
Article #84353Re: "Free.XSusenet.COM:80", free with registration, has "news:❚@❚".
From: Steve Crook
Date: Mon, 06 Feb 2012 10:26
Date: Mon, 06 Feb 2012 10:26
29 lines
2512 bytes
2512 bytes
On Sun, 05 Feb 2012 11:37:25 -0800, Russ Allbery wrote in Message-Id: <87wr81xea2.fsf@windlord.stanford.edu>: > The duties of netnews agents around malformed articles are not as > blindingly obvious as they could have been in RFC 5537, but you should > also note section 3.1: This is probably as good a point as any in this thread to try and clarify, what is a valid Message-ID. As most validation tends to be done in Perl, here's my stab at creating a regex that complies with RFC5537. my $mdtext = '[\x21-\x3d\x3f-\x5a\x5e-\x7e]+'; my $nofoldliteral = '\[' . $mdtext . '\]'; my $idright = '(?:' . $mdtext . '|' . $nofoldliteral . ')'; my $idleft = $mdtext; my $msgidcore = $idleft . '\@' . $idright; my $msgid = '<' . $msgidcore . '>'; my $messageid = '^[\x20\x09]*' . $msgid . '[\x20\x09]*$'; Regardless of what action should be taken, at least this is a step towards identifying that some action is required. This doesn't deal with the min/max length constraints. That's easier to address with a simple conditional. The RFCs allowance of no-fold-literals is interesting. I'd be surprised if all newsreaders interpret that correctly. I'll be surprised and pleased if my code does. At least there's no CFWS to untangle. :)
Technical Details
Message-ID:
<slrnjivam1.3g8.steve@news.mixmin.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.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!.POSTED.2a01:4f8:100:5243::4!not-for-mailReferences:
<87r4ybp2xu.fsf@windlord.stanford.edu> <3bc1e7d26ccf3c7d6b710ef308788a07@tioat.net> <Jeff-Relf.Me@2012_Feb.4^7.04.pm> <jgl6u2$18a$1@dont-email.me> <jgmgv0$isc$1@news.albasani.net> <87wr81xea2.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrnjivam1.3g8.steve@news.mixmin.net> Subject: Re: "Free.XSusenet.COM:80", free with registration, has "news:❚@❚". Date: Mon, 06 Feb 2012 10:26:09 +0000 From: Steve Crook <steve@mixmin.net> References: <87r4ybp2xu.fsf@windlord.stanford.edu> <3bc1e7d26ccf3c7d6b710ef308788a07@tioat.net> <Jeff-Relf.Me@2012_Feb.4^7.04.pm> <jgl6u2$18a$1@dont-email.me> <jgmgv0$isc$1@news.albasani.net> <87wr81xea2.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.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!.POSTED.2a01:4f8:100:5243::4!not-for-mail Newsgroups: news.software.nntp,alt.free.newsservers Organization: Mixmin Injection-Date: Mon, 6 Feb 2012 10:26:09 +0000 (UTC) Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4"; logging-data="13478"; mail-complaints-to="abuse@mixmin.net" User-Agent: slrn/pre1.0.0-26 (Linux) Lines: 28