🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79935

Converting quoted and escaped message-IDs

#79935
From: Julien ÉLIE
Date: Sat, 27 Dec 2008 18:33
67 lines
3106 bytes
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...

-- 
Julien ÉLIE

« -- Il l'aura voulu.
  -- Tu crois vraiment ? » (Astérix) 
Technical Details
Message-ID: <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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border1.a.newsrouter.astraweb.com!transit4.hitnews.eu!feeder.news-service.com!87.106.137.111.MISMATCH!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <gj5se0$226$1@news.trigofacile.com>
Subject: Converting quoted and escaped message-IDs
Date: Sat, 27 Dec 2008 19:33:15 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border1.a.newsrouter.astraweb.com!transit4.hitnews.eu!feeder.news-service.com!87.106.137.111.MISMATCH!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 67
NNTP-Posting-Host: amontpellier-152-1-59-192.w83-197.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-15";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1230402816 2118 83.197.146.192 (27 Dec 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 27 Dec 2008 18:33:36 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049