🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by acrosby Albert Crosby Wed, 14 Apr 1993 15:16
Writing a Rexx Newsreader... Is XHDR a 'standard' extension?
#3885
Author: acrosby Albert Crosby
Date: Wed, 14 Apr 1993 15:16
21 lines
1671 bytes
I'm working on a newsreder for OS/2 written in REXX.  Our local nntp server is
version 1.5.10.

I'm planning to use the XHDR command fairly heavily at this point, since the
server supports it.  Can I depend on this extension being available pretty
much universally, or should I check for it?

Also, is that the current version of the NNTP server?

Another question:  is there a list of 'basic' features that I should include
in my newsreader?  As a first effort, I want to keep it simple to program and
reasonably simple to use....

(It's rather interesting to dwelve into the nntp server in raw mode... :-))

Albert
--
Albert Crosby          | Microcomputer & Network Support | WANTED: any good 
acrosby@uafhp.uark.edu |   University of Arkansas        | "Intro To The Net
 or AL.CROSBY on GENIE |     College of Agriculture And  | For Newbies" guides
1 501 575 4452         |       Home Economics            | (email for mine...)
Re: Writing a Rexx Newsreader... Is XHDR a 'standard' extension?
#3888
Author: Doug Sewell
Date: Wed, 14 Apr 1993 15:56
52 lines
3202 bytes
Albert Crosby (acrosby@uafhp..uark.edu) wrote:
: I'm working on a newsreder for OS/2 written in REXX.  Our local nntp server is
: version 1.5.10.

: I'm planning to use the XHDR command fairly heavily at this point, since the
: server supports it.  Can I depend on this extension being available pretty
: much universally, or should I check for it?

Technically, you should check for it.  The easiest way is to do it is to
issue an 'XHDR' at the beginning of the session, and watch the response
codes.  '500' indicates it's an unimplemented command, and '501' indicates
syntax error (appropriate since you didn't specify a header name).  That
syntax error says that it works.

Incidentally, Trumpet didn't check for it, it just assumed that it was
there.  It may handle it right now, by checking and using 'HEAD' commands
as an alternative.

XHDR can be a costly command with the reference version of NNTP.  With
INN 1.3 and up and the NOV databases, it's pretty cheap (Ed Rynes of
CWRU told me that the XHDR-via-NOV cut his nntp-server load by 1/2,
and it's hosting all of the Cleveland Free-Net users).

Speaking of INN, you'd be wise to pass a 'MODE READER' command to the
news-server.  a '500' response indicates that INN isn't at the other
end, but a reference nntpd or some other implementation.  '200' indicates
posting allowed, '201' indicates no posting, and '502' indicates that
access is denied.  In the case of a 200 or 201, it should replace the
initial value received from the server.

: Also, is that the current version of the NNTP server?

Reference implementation of NNTP is 1.5.11.

InterNetNews (INN) is 1.4.

: Another question:  is there a list of 'basic' features that I should include
: in my newsreader?  As a first effort, I want to keep it simple to program and
: reasonably simple to use....

If you have access to a VM system, check out 'NNR', a CMS newsreader using
RXSOCKET, REXX, and XEDIT to read and post news, reply to articles by mail,
and mail an article to someone else.  The sources (available via ftp from
rusmv1.rus.uni-stuttgart.de or 129.69.1.12, in /soft/kommunikation/news/
beginner/software/nnr) are almost exclusively REXX, so you can get some
ideas, even from just the user's guide.

-- 
Doug Sewell, Tech Support, Computer Center, Youngstown State University
doug@cc.ysu.edu	   doug@ysub.bitnet	<internet>!cc.ysu.edu!doug

uuencode bunny.dropping < core | mail jp@tygra.michigan.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads