🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #6392

Fix for TIN 1.22 with NNTP and local indexes

#6392
From: rose
Date: Sat, 06 Nov 1993 06:27
49 lines
2325 bytes
When I changed from TIN 1.1 to TIN 1.22 I discovered that I couldn't get TIN
1.22 to use NNTP and store indexes on my local machine.  I looked in this
group for a solution and found several others with the same problem, but no
fix for the problem.  I think I've found at least one solution.

In open.c find the section that looks like this:

--------------------------------------------------------------------------
		/*
		 * Check if NNTP/INN supports XOVER command
		 */
		debug_nntp ("nntp_open", "xover");
		put_server ("xover");	
		if (get_respcode () != ERR_COMMAND) {
			xover_supported = TRUE;
			xindex_supported = TRUE;	/* a hack to get xindex behaviour */
		}

		/*
		 * Check if NNTP supports my XINDEX & XUSER commands
		 */
#ifndef DONT_HAVE_NNTP_EXTS	 
--------------------------------------------------------------------------

Move the '#ifndef DONT_HAVE_NNTP_EXTS' line to the top of this section, like
this.

--------------------------------------------------------------------------
#ifndef DONT_HAVE_NNTP_EXTS
		/*
		 * Check if NNTP/INN supports XOVER command
		 */
		debug_nntp ("nntp_open", "xover");
		put_server ("xover");	
		if (get_respcode () != ERR_COMMAND) {
			xover_supported = TRUE;
			xindex_supported = TRUE;	/* a hack to get xindex behaviour */
		}

		/*
		 * Check if NNTP supports my XINDEX & XUSER commands
		 */
--------------------------------------------------------------------------

Recompile defining DONT_HAVE_NNTP_EXTS in the makefile.  This worked for me
and I have my fast index access back.  Good luck.

Steve Rose
Technical Details
Message-ID: <2bfg4o$fna@usenet.pa.dec.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!doc.ic.ac.uk!decwrl!pa.dec.com!sartre.wro.dec.com!rose

Show Full Headers
Complete Article Headers
Message-ID: <2bfg4o$fna@usenet.pa.dec.com>
Subject: Fix for TIN 1.22 with NNTP and local indexes
Date: Sat, 06 Nov 1993 06:27:36 +0000
From: rose@sartre.wro.dec.com (rose)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!doc.ic.ac.uk!decwrl!pa.dec.com!sartre.wro.dec.com!rose
Newsgroups: news.software.readers
Organization: Digital Equipment Corporation, Palo Alto, CA, USA
Lines: 50
NNTP-Posting-Host: sartre.wro.dec.com
X-Newsreader: TIN [version 1.2 PL2]