Article View: news.software.nntp
Article #79937Re: Converting quoted and escaped message-IDs
From: Russ Allbery
Date: Sat, 27 Dec 2008 20:50
Date: Sat, 27 Dec 2008 20:50
45 lines
2916 bytes
2916 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> writes:
> 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.
It's important to note that INN is *not* an NNTP implementation handling
email articles as was meant by this part of the standard. (Some of its
supporting programs, like mailpost, are gateways that probably should
think about that, but that's slightly different.) This was talking about
things like an NNTP interface to an IMAP store, where the underlying
articles can't be expected to comply with NNTP or Usenet article format
standards.
INN can assume that all articles in its spool are RFC 1036 messages and
therefore can ignore these sorts of quoting issues.
> What should be done?
>
> Every time a user gives a message-ID, should it be rewritten internally
> by the news server?
No, once the message ID reaches the NNTP protocol, it should be accepted
or rejected as-is and treated as a literal string. Anything that needs to
be done here has to be done prior to that.
USEFOR is taking the approach of outlawing the ambiguous message IDs,
which puts the onus on clients to not generate them.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87myehs5os.fsf@windlord.stanford.edu>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!feeder.erje.net!newshub.sdsu.edu!newsfeed.stanford.edu!news.stanford.edu!not-for-mailReferences:
<gj5se0$226$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <87myehs5os.fsf@windlord.stanford.edu> Subject: Re: Converting quoted and escaped message-IDs Date: Sat, 27 Dec 2008 12:50:59 -0800 From: Russ Allbery <rra@stanford.edu> 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!feeder.erje.net!newshub.sdsu.edu!newsfeed.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 45 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.stanford.edu 1230411059 1725 171.67.225.134 (27 Dec 2008 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:fwFP8zjbsAwX1YVgQJ1IOpiqNjg=