From: SMTP%"terry@SPCVXB.SPC.EDU" 24-MAY-1993 16:26:21.86 To: EVERHART CC: Subj: Re: How to respond to INBOUND NNTP_XMIT? Date: Mon, 24 May 1993 00:56:25 EDT Reply-To: "Terry Kennedy, Operations Mgr." Sender: ANU-NEWS Discussion From: "Terry Kennedy, Operations Mgr." Organization: St. Peter's College, US Subject: Re: How to respond to INBOUND NNTP_XMIT? To: Multiple recipients of list ANU-NEWS In article <1993May21.070928.1629@dmc.com>, munroe@dmc.com (Dick Munroe) writes: > How does the linkage work the OTHER way. What do I have to run on MY system t o > allow the OTHER end to do the same thing. I can't seem to find this anywhere > in the manual or in the miscellaneous notes in the DOC distribution. I've > clearly overlooked something, but what? Assuming the "other end" is UUNET or somebody else running INN, they're going to be giving IHAVE commands to your NNTP server. If your server says it wants the article, the article will be sent and stored in a batch file called news_manager:nntp_yymmddhhmm_nntppid.batch. You then have to add that batch somehow (via an ADD command to news). I do it with a job that looks like this: $ ! NNTP_ADD.COM - add received NNTP batches to News database $ ! $ ! V1.0-00 - 20-May-93 - tmk - Original version $ ! $ ! Set process name $ ! $ set process/name="NNTP_ADD" $ ! $ ! If we got an error, it means another copy is already running, so exit $ ! $ if .not. $status then goto finis $ ! $ ! We need CMKRNL to submit as another user (even if we are that user) $ ! $ set proc/priv=(cmkrnl) $ ! $ ! If the NEWS_STOP logical is defined, skip this run $ ! $ if f$logical("NEWS_STOP") .nes. "" then goto resub $ ! $ ! Set an error trap $ ! $ on error then goto problem $ ! $ ! Add the batches $ ! $ news :== $news_root:news.exe $ news/noscreen add batch/delete news_manager:nntp_*.batch $ ! $ ! Resubmit ourselves in 30 minutes (this may need to be tuned later) $ ! $resub: $ t = f$time() $ t1 = f$cvtime(t,"absolute","date") $ t2 = f$cvtime(t,"absolute","time") $ tn = t1 + ":" + t2 + "+00:30:00" $ submit news_manager:nntp_add - /user=newsmgr - /queue=sys$batch - /log=news_log:nntp_add.log - /noprint - /after="''tn'" $ goto finis $ ! $ ! Error handler $ ! $problem: $ mail/subject="Problem in NNTP_ADD - check the logfile" nl: _terry $ ! $ ! All done $ ! $finis: $ exit 1 I think the reason ANU News does it this way is because actually adding the batch during the IHAVE would slow down the server enough to cause the other end to time out. Terry Kennedy Operations Manager, Academic Computing terry@spcvxa.bitnet St. Peter's College, Jersey City, NJ USA terry@spcvxa.spc.edu +1 201 915 9381