πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79313

Re: Questions about MODE

#79313
From: Russ Allbery
Date: Sat, 23 Aug 2008 17:43
60 lines
3343 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> I wonder why there is only "MODE READER" and not a "MODE" command.
> Because "MODE TRANSIT" could have also been specified (why not be
> symmetric?).

It could have, but all of the news servers that implement MODE READER
couldn't actually do the thing that MODE TRANSIT would indicate they
should do.  You can't go back from nnrpd to innd.

> According to RFC 3977:
>
>   Note that where a command has variants depending on a second keyword
>   (e.g., LIST ACTIVE and LIST NEWSGROUPS), 501 MUST be used when the
>   base command is implemented but the requested variant is not, and 500
>   MUST be used only when the base command itself is not implemented.
>
> Is it mentioned that "MODE" is a base command in the RFC?
> According to what I understand, "MODE READER" is the base command.

Hm.  That's sort of an odd wart, isn't it?

> So "MODE" and "MODE BADMODE" must return 500, mustn't they?  (And not
> 501.)

That's that's the way that I'd implement it.  In retrospect, MODE probably
should have been a base command, but we didn't write it that way.

> The extension "STREAMING" (available with "MODE STREAM") states that 401
> must not be returned for commands called while not in streaming mode.

That's because the intention of RFC 4644 is to get rid of the entire
concept of "streaming mode."  Servers should not be modal, and MODE STREAM
should not be required to use streaming commands.  Instead, the commands
should simply be supported and advertised in CAPABILITIES if they're
available.  MODE STREAM is supported only for backward compatibility.

> But I do not find the information for "MODE READER".  So, what must be
> done?
>
>    POST <test@test>
>    401 MODE-READER
>
> or
>
>    POST <test@test>
>    500 Unknown command
>
> or something else (503 Feature not supported)?
> I believe 502 must not be answered right now.

502 is the correct return code if MODE READER is not available (innd
running in noreaders mode).  If MODE READER is available, 401 is the
correct response as you mention above.

-- 
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: <87tzdby6d6.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.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail
References: <g8ovaf$155$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87tzdby6d6.fsf@windlord.stanford.edu>
Subject: Re: Questions about MODE
Date: Sat, 23 Aug 2008 10:43:33 -0700
From: Russ Allbery <rra@stanford.edu>
References: <g8ovaf$155$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!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 60
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 1219513413 28281 171.64.19.147 (23 Aug 2008
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:OrpxFfuIzOQhlupuslbMc0IuSO4=