πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79395

Re: Syntax or permissions first?

#79395
From: Russ Allbery
Date: Tue, 02 Sep 2008 21:57
35 lines
2076 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> I wonder which one between the syntax of a whole command or the
> permissions to use the base command comes first.

I would do syntax first.  I think that's what clients would generally
expect.

> If I cannot use BODY (no read access):
>
> CAPABILITIES
> VERSION 2
> READER
> AUTHINFO
> .
>
> I believe READER is advertised even though read access is forbidden
> right now.  Is it right?

READER should only be advertised if the client can use reader commands.
If they don't have read access to any group, I wouldn't advertise READER,
unless I'm missing some subtlety about what commands are included in that.

> Then:
>
> BODY with three arguments
> 501 Syntax error

This is the correct response regardless, I'd say.

-- 
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: <878wuaqki6.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
References: <g9hkag$i39$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <878wuaqki6.fsf@windlord.stanford.edu>
Subject: Re: Syntax or permissions first?
Date: Tue, 02 Sep 2008 14:57:05 -0700
From: Russ Allbery <rra@stanford.edu>
References: <g9hkag$i39$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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 35
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 1220392625 32673 171.64.19.147 (2 Sep 2008 21:57:05
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:CHhaYCFHsy804Xc1P6JULUEvNRg=