🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69695

Re: Rejecting bad Message-IDs

#69695
From: Andrew - Supernews
Date: Wed, 11 Aug 2004 00:48
32 lines
2355 bytes
On 2004-08-11, Curt Welch <curt@kcwc.com> wrote:
> "Colin Wilson" <colin@wilsonc.demon.co.uk> wrote:
>> Curt Welch wrote:
>> > Or is my problem that I'm using the wrong defintion of what a valid
>> > Message-ID is
>>
>> BTW, where did you get the definition of what constitutes a valid
>> Message-ID?
>
> I'm not sure.  But RFC 1036, which makes vague refrence the RFC822 (email)
> was part of it.  And then there's son of 1036 which attempts to talk more
> about the issue.
>
> 1036 I see starts the problem by defining a Message-ID to be any string of
> characters inside < > as long as space and > is not inside the Message-Id.
> But then it goes on the talk about RFC 822 without making it clear if you
> should follow 822 or not.

You should follow both.

What we do is to be relatively loose on incoming message-ids; we require
them to have no whitespace, no embedded "<" or ">" (slightly stricter than
1036) and no more than 250 characters. We don't check for @ or for the
dot-atom syntax. (Arguably we should probably check for the @. I'll think
about that.)

On local posts, though, we do the stricter checks as well - better to
reject the article upfront rather than have it only partially propagate.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Technical Details
Message-ID: <slrnchir75.1bsd.andrew+nonews@trinity.supernews.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <20040809200002.772$KV@newsreader.com> <1092159935.74756.0@despina.uk.clara.net> <20040810202928.809$tA@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnchir75.1bsd.andrew+nonews@trinity.supernews.net>
Subject: Re: Rejecting bad Message-IDs
Date: Wed, 11 Aug 2004 00:48:37 -0000
From: Andrew - Supernews <andrew+nonews@supernews.com>
References: <20040809200002.772$KV@newsreader.com> <1092159935.74756.0@despina.uk.clara.net> <20040810202928.809$tA@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://www.supernews.com - all your nntp are belong to us
Reply-To: andrew@supernews.com
User-Agent: slrn/0.9.8.0 (FreeBSD)
X-Complaints-To: abuse@supernews.com
Lines: 32