[comp.sys.next] NNTP <-> Notes

carlson@mrcnext.cso.uiuc.edu (05/11/89)

I wondered what would happen if I sent test notes to a real group :-)
It occurred to me that others might want to try notes<->NNTP.
(I didn't want to wait for a news feed.)
Here are the steps to hook up U. of Illinois notes(1) to NNTP:

To download notes, use (via {): nntpxfer,
hacked to use newsinput instead of inews.
The dbm routines have been deactivated.

To upload to NNTP server, use newsoutput (via {)
with net.how set up as:

Usenet:x:::/usr/spool/notes/.utilities/nntpup

File nntpup contains:
#! /bin/sh
# simulate piped operation by nntpxmit
tmp=nf_nntp$$
cat >$tmp
nntpxmit -a garcon:$tmp
rm $tmp

This note should go out via this very method.

I did some other hacks, such as deactivate load average checking in
nntpxmit (access /dev/kmem).
Also, in several places notes tries to write to a string constant;
this is not allowed on NeXT w/ GNU C, and causes Seg Violations.

Both notes and nntp package came from uxc.cso.uiuc.edu.
I don't really have the time to provide a full cookbook of required
modifications.

Basically nntp->notes uses NEWNEWS command; a timestamp file
is saved for the NEWNEWS command, to suppress old notes.
(Our server still sends a few old notes anyway, I don't know why.
Notes also filters out repeated notes.)

notes->nntp uses IHAVE command, sends only notes server does not have.

--------------------
Brad Carlson  <carlson@mrcnext.cso.uiuc.edu> or <b-carlson@uiuc.edu>
University of Illinos at Urbana-Champaign
NeXT guru for the Micro Resource Center