🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82012

Spaces in NNTP commands

#82012
From: Julien ÉLIE
Date: Sat, 17 Oct 2009 20:51
33 lines
2068 bytes
Hi,

Is it OK to just discard empty NNTP commands or commands containing
only white spaces?
That is to say answering nothing to "\r\n" and "   \r\n", just waiting
for the following real command.

It is what nnrpd currently does for empty commands (but not innd, which
accepts the first "\r\n" and rejects the second "\r\n" with 500).


An amusing thing is to write " \r\n" to nnrpd:  it closes the connection :)

if (ac == 0)
  break;
=> leave the infinite read loop
(it should be a "continue")



N.B.: Even though RFC 3977 does not accept " POST" (leading space),
"POST " (trailing space), "IHAVE  <mid>" (with two white spaces),
it seems better to accept such commands, as nnrpd currently does.

And just silently read empty commands.

Any thought about that?

-- 
Julien ÉLIE

« Se taire, c'est pareil dans toutes les langues. » (Philippe Geluck)
Technical Details
Message-ID: <hbdap8$7e8$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!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <hbdap8$7e8$1@news.trigofacile.com>
Subject: Spaces in NNTP commands
Date: Sat, 17 Oct 2009 22:51:50 +0200
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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 33
NNTP-Posting-Host: aaubervilliers-151-1-19-158.w83-114.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 1255812713 7624 83.114.138.158 (17 Oct 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 17 Oct 2009 20:51:53 +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