🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44493

[NNTP Draft] 9.3 Article Posting

#44493
From: Andrew Gierth
Date: Sat, 26 Feb 2000 00:00
293 lines
11239 bytes
[This is one of a series of extracts from draft-ietf-nntpext-base-09.txt
which is available in full from the usual Internet-Draft archives.]


          9.3 Article Posting

          Barber                                                 [Page 31]

          INTERNET DRAFT                                 November 1999

            Article posting is done in one of two modes: individual
            article posting from news reading clients and article transfer
            from other news servers.

          9.3.1 POST

            POST

            If posting is allowed, response code 340 MUST be returned to
            indicate that the article to be posted should be sent.
            Response code 440 MUST be sent if that posting is prohibited
            for some installation-dependent reason.

            If posting is permitted, the article MUST be presented to the
            server by the client in the format specified by RFC 1036. The
            text forming the header and body of the message to be posted
            MUST be sent by the client using the conventions for text
            received from the news server: A single period (".") on a line
            indicates the end of the text, with lines starting with a
            period in the original text having that period doubled during
            transmission.

            Following the presentation of the termination sequence by the
            client, the server MUST return a response code indicating
            success or failure of the article transfer.

            No attempt shall be made by the server to filter characters,
            fold or limit lines, or otherwise process incoming text. The
            intent is that the server just passes the incoming message to
            be posted to the server installation's news posting software,
            which is not part of this specification.

          9.3.1.1 Responses

                 240 article received ok
                 340 send article to be posted. End with <CR-LF>.<CR-LF>
                 440 posting not allowed
                 441 posting failed

          9.3.1.2 Examples
            Example of a successful posting

                    [S] 200 NNTP Service Ready

                    [C] POST

                    [S] 340 Input article. End with <CR-LF>.<CR-LF>

                    [C] From: demo@testdomain.com(Demo User)

                        Newsgroups: misc.test

          Barber                                                 [Page 32]

          INTERNET DRAFT                                 November 1999

                        Subject: I am just a test article

                        Organization: Testdomain, USA

                        This is just a test article.

                        .

                    [S] 240 Article received ok

            Example of an unsuccessful posting

                    [S] 200 NNTP Service Ready

                    [C] POST

                    [S] 340 Input article. End with <CR-LF>.<CR-LF>

                    [C] From: demo@testdomain.com(Demo User)

                        Newsgroups: misc.test

                        Subject: I am just a test article

                        Organization: Testdomain, USA

                        This is just a test article.

                        .

                    [S] 441 Posting failed

            Example of an attempt to posting when posting is not allowed

                    [S] 201 NNTP Service Ready, read-only

                    [C] POST

                    [S] 440 Posting not permitted

          9.3.2 IHAVE

            IHAVE <message-id>

            The IHAVE command informs the server that the client has an
            article whose id is <message-id>. If the server desires a copy
            of that article, it MUST return a response instructing the
            client to send the entire article. If the server does not want

          Barber                                                 [Page 33]

          INTERNET DRAFT                                 November 1999

            the article (if, for example, the server already has a copy of
            it), a response indicating that the article is not wanted MUST
            be returned.

            If transmission of the article is requested, the client MUST
            send the entire article, including header and body, in the
            manner specified for text transmission from the server. The
            server MUST return a response code indicating success or
            failure of the transferal of the article.

            This function differs from the POST command in that it is
            intended for use in transferring already-posted articles
            between hosts. It SHOULD NOT be used when the client is a
            personal news reading program. In particular, this function
            will invoke the server's news posting program with the
            appropriate settings (flags, options, etc.) to indicate that
            the forthcoming article is being forwarded from another host.

            However, the server MAY elect not to post or forward the
            article if after further examination of the article it deems
            it inappropriate to do so. Reasons for such subsequent
            rejection of an article may include such problems as
            inappropriate news groups or distributions, disk space
            limitations, article lengths, garbled headers, and the like.
            These are typically restrictions enforced by the server host's
            news software and not necessarily the NNTP server itself.

          9.3.2.1 Responses

                 235 article transferred ok
                 335 send article to be transferred.  End with <CR-
                 LF>.<CR-LF>
                 435 article not wanted - do not send it
                 436 transfer failed - try again later
                 437 article rejected - do not try again

            Because some host news posting software may not be able to
            immediately render status on the whether an article is
            inappropriate for posting or forwarding, an NNTP server MAY
            acknowledge the successful transfer of the article and later
            silently discard it. Thus, an NNTP server MAY return the 235
            acknowledgment code and later discard the received article.

          9.3.2.2 Examples
            Example of successfully sending an article to another site

                    [S] 200 NNTP Service Ready

                    [C] IHAVE <i.am.an.article.you.will.want@nowhere.to>

                    [S] 335 Send it. End with <CR-LF>.<CR-LF>

          Barber                                                 [Page 34]

          INTERNET DRAFT                                 November 1999

                    [C] Path: pathost!demo!somewhere!not-for-mail

                        From: nobody@nowhere.to (Demo User)

                        Newsgroups: misc.test

                        Subject: I am just a test article

                        Date: 6 Oct 1998 04:38:40 -0500

                        Organization: Nowhere, To

                        Message-ID: <i.am.a.test.article@nowhere.to>

                        This is just a test article.

                        .

                    [S] 235 Article transferred ok

            Example of sending an article to another site that rejects it

                    [S] 200 NNTP Service Ready

                    [C] IHAVE <i.am.an.article.you.will.want@nowhere.to>

                    [S] 335 Send it. End with <CR-LF>.<CR-LF>

                    [C] Path: pathost!demo!somewhere!not-for-mail

                        From: nobody@nowhere.to (Demo User)

                        Newsgroups: misc.test

                        Subject: I am just a test article

                        Date: 6 Oct 1998 04:38:40 -0500

                        Organization: Nowhere, To

                        Message-ID: <i.am.a.test.article@nowhere.to>

                        This is just a test article.

                        .

                    [S] 437 Article rejected. Don't send again

            Example of sending an article to another site where the
            transfer fails

          Barber                                                 [Page 35]

          INTERNET DRAFT                                 November 1999

                    [S] 200 NNTP Service Ready

                    [C] IHAVE <i.am.an.article.you.will.want@nowhere.to>

                    [S] 335 Send it. End with <CR-LF>.<CR-LF>

                    [C] Path: pathost!demo!somewhere!not-for-mail

                        From: nobody@nowhere.to (Demo User)

                        Newsgroups: misc.test

                        Subject: I am just a test article

                        Date: 6 Oct 1998 04:38:40 -0500

                        Organization: Nowhere, To

                        Message-ID: <i.am.a.test.article@nowhere.to>

                        This is just a test article.

                        .

                    [S] 436 Transfer failed

            Example of sending an article to another site that rejects it

                    [S] 200 NNTP Service Ready

                    [C] IHAVE <i.am.an.article.you.will.want@nowhere.to>

                    [S] 335 Send it. End with <CR-LF>.<CR-LF>

                    [C] Path: pathost!demo!somewhere!not-for-mail

                        From: nobody@nowhere.to (Demo User)

                        Newsgroups: misc.test

                        Subject: I am just a test article

                        Date: 6 Oct 1998 04:38:40 -0500

                        Organization: Nowhere, To

                        Message-ID: <i.am.a.test.article@nowhere.to>

                        This is just a test article.

          Barber                                                 [Page 36]

          INTERNET DRAFT                                 November 1999

                        .

                    [S] 435 Don't send it again


-- 
Andrew.

Technical Details
Message-ID: <879007d2t9.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <879007d2t9.fsf@erlenstar.demon.co.uk>
Subject: [NNTP Draft] 9.3 Article Posting
Date: Sat, 26 Feb 2000 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 590399874
X-Mayan-Date: Long count = 12.19.6.17.16; tzolkin = 13 Cib; haab = 4 Kayab
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha