🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83298

Re: Usenet message format

#83298
From: Julien ÉLIE
Date: Fri, 09 Jul 2010 23:04
61 lines
3638 bytes
Hi Steve,

> If I terminate headers with CRLF then newer versions of INN seem happy
> enough about it but older versions reject messages with errors like:
> 437 Bad "Message-ID" header

With the new way we parse already injected articles (innd), I believe
we're less strict than before.  But we're stricter at the injection point
(nnrpd) where only *WSP will be allowed (that is to say spaces and tabs)
before the single final CRLF of the Message-ID: header field.

If you find something suspicious during your tests on one of INN 2.5.2,
STABLE 2.5.3 and CURRENT 2.6.0, do not hesitate to tell.



> I also note that even headers added by the server, such as
> Injection-Info are only terminated with a LF.  (I'm using hexedit to
> view these articles directly from a tradspool.)

That's OK if you're not using wireformat, as Russ said.

Also, please note that if you look at the source code of INN, you will
only see LF for the Injection-Info: header field.  It's fine at that
very point in the source code.  See:
    http://inn.eyrie.org/trac/changeset/8878/trunk


Do you see that with the messages you inject with your Python code?
or other messages?
I ask because you mention 437 error codes, which means that IHAVE is
used.  Do you send your articles to nnrpd (MODE READER) or innd?



> In the payload, if an entire message doesn't contain a CR then newer
> versions of INN seem to reject them with errors like:
> 437 No body
> or
> 437 Empty article

INN explicitly looks for CRLF for the start of the body.
Older versions had a bug.  The code dealing with "No body" and
"Empty article" in art.c totally changed in INN 2.5.
In our changelog, there is in INN 2.5.2:
    Fixed a bug in recognizing the article terminator when empty
    articles were fed to innd via IHAVE or TAKETHIS, leading to
    treating subsequent NNTP commands as part of the article.
It was the major consequence.  I believe other minor things were
also fixed.

Do not hesitate to tell us if you see any issue with how recent INN
versions parse headers.  Bugs may have been introduced and would then
need fixing...

-- 
Julien ÉLIE

« Quand on retire tout ce qu'on a dit, il reste tout ce qu'on n'a pas dit. »
  (Philippe Geluck) 
Technical Details
Message-ID: <i189t2$pgj$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!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-17-196.w83-114.abo.wanadoo.fr!not-for-mail
References: <slrni3f1nb.49m.steve@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <i189t2$pgj$1@news.trigofacile.com>
Subject: Re: Usenet message format
Date: Sat, 10 Jul 2010 01:04:00 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <slrni3f1nb.49m.steve@news.mixmin.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-17-196.w83-114.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 61
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 9 Jul 2010 23:04:02 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-151-1-17-196.w83-114.abo.wanadoo.fr:83.114.136.196";
 logging-data="26131"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <slrni3f1nb.49m.steve@news.mixmin.net>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18197