πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82014

Re: Spaces in NNTP commands

#82014
From: D. Stussy
Date: Sun, 18 Oct 2009 07:14
33 lines
2128 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:hbdap8$7e8$1@news.trigofacile.com...
> 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?

Have an empty command counter.  5 consecutive empty lines => "500 Too many
blank lines."

Technical Details
Message-ID: <hbef8i$qf1$1@snarked.org>
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.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mail
References: <hbdap8$7e8$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <hbef8i$qf1$1@snarked.org>
Subject: Re: Spaces in NNTP commands
Date: Sun, 18 Oct 2009 00:14:20 -0700
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <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.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 33
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-160-18-32.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1255850066 27105 71.160.18.32 (18 Oct 2009 07:14:26 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Sun, 18 Oct 2009 07:14:27 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478