🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79936

Re: Converting quoted and escaped message-IDs

#79936
From: Curt Welch
Date: Sat, 27 Dec 2008 20:05
82 lines
4694 bytes
=?iso-8859-15?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> wrote:
> Hi,
>
> RFC 3977 states that:
>
>    RFC 2822 has a concept of "quoted" and "escaped" characters.  It
>    therefore considers the three message-ids:
>
>       <ab.cd@example.com>
>       <"ab.cd"@example.com>
>       <"ab.\cd"@example.com>
>
>    as being identical.  Therefore, an NNTP implementation handing email
>    articles must ensure that only one of these three appears in the
>    protocol and that the other two are converted to it as and when
>    necessary, such as when a client checks the results of a NEWNEWS
>    command against an internal database of message-ids.
>
> USEFOR states that:
>
>    only the first of them is syntactically permitted by this standard,
>    and hence a simple comparison of octets will always suffice to
>    determine the identity of two <msg-id>s.
>
> What should be done?
>
> Every time a user gives a message-ID, should it be rewritten internally
> by the news server?
>
> If I send:
>
>     ARTICLE <t\e\st@tes\t.fr>
>
> should the news server understand:
>
>     ARTICLE <test@test.fr>
>
> or return that it is an invalid message-ID (501 syntax error)?
>
> Is <"ab..cd"@example.com> (double dots) to be accepted?  And converted
> to <ab.cd@example.com>?
>
> Is <"ab.cd"@example.com> (single dot) invalid according to USEFOR and
> valid according to RFC 3977?  What to do with it?
>
> Another issue:  for articles already in the history of a news server,
> what should be done?  If I have three stored articles as
> <"ab.cd"@example.com>, <"ab..cd"@example.com> and <ab.cd@example.com>,
> how would I find them with RFC 3977 and USEFOR?  Only the last one would
> be returned (and a syntax error for the first one???).
>
> Or maybe I am missing something...

I'm not aware of any news server or news client that deals with this for
standard Usenet messages.  Most news servers will accept just about any
character inside a message-id and none of them that I know of will check
for, or attempt to convert, messages like the above.  Diablo even accepted
spaces inside of message-ids (or at least it used to) - which breaks most
other servers.  I believe there are a lot of servers that don't even
require the @ in message ID's.

Test it on some servers you have access to and see what happens.  Try
posting messages in all three formats - I strongly suspect any server you
try will allow it, and see it as three different IDs, and that all three
formats will propitiate around Usenet just fine (as three different
messages).

I would suggest that the only time you have to deal with such issues if you
were writing a mail to Usenet gateway or a client that tried to integrate
email and Usenet messages in a common data base.  For purely NNTP clients
and servers, just doing a byte for byte comparison to whatever is given in
an article or as an argument to an NNTP command is the normal way the
servers are written.

If there's an effort afoot to try and make servers deal with this
complexity, I'm not aware of it, and if you start changing the message-id
as given, you will introduce complexity into the system that doesn't
currently exist.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20081227150515.438$oN@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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!proxad.net!feeder2-2.proxad.net!nx02.iad.newshosting.com!newshosting.com!198.186.190.251.MISMATCH!transit4.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5c.newsreader.com.POSTED!not-for-mail
References: <gj5se0$226$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <20081227150515.438$oN@newsreader.com>
Subject: Re: Converting quoted and escaped message-IDs
Date: Sat, 27 Dec 2008 20:05:20 +0000
From: curt@kcwc.com (Curt Welch)
References: <gj5se0$226$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!proxad.net!feeder2-2.proxad.net!nx02.iad.newshosting.com!newshosting.com!198.186.190.251.MISMATCH!transit4.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5c.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com q@n/3lGeV.0E@n5ishQa5K6LF8xY/oZz+fcfRAcZhJI1oVf
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
 ?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 82
NNTP-Posting-Host: bacb134c.nr5c.newsreader.com
X-Trace: DXC=STKk9bBJ; d35]F7Z;
 G7KL0TBAE>]OkP]==f:jkLaeX<?H2EnI=>h8\3=GG>gNT>AL2X6X@<?AhPi7
X-Complaints-To: abuse@newsreader.com