🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #31560

Re: enabling xrefslave causes excess rejects

#31560
From: Mark Hittinger
Date: Mon, 21 Sep 1998 00:00
71 lines
2852 bytes
tony@news.dod.hawaii.gov (Antonio Querubin) writes:
>I've been trying to use the xrefslave feature in INN 2.1 to synchronize
>the active file in one news server to that of another running INN 1.4 (the
>older INN feeds the new version).  However, when xrefslave is turned on in
>the downstream server a lot of articles are rejected with a '437 Invalid
>Xref header ""' error message in the news log file.  Does use of xrefslave
>require additional configuration in the upstream server to work properly?

There is a bug in the older INN xrefslave patch.  It does not generate
xref headers for articles which are not crossposted.  I've appended a
patch for art.c which basically gets rid of a boolean test.  That test
causes xref headers to only be generated for crossposted articles.  We
want to ditch that and generate xref for an article even if it is only
posted to one group.

Regards,

Mark Hittinger
ICGNetcom/DallasOps
bugs@freebsd.netcom.com

xrefslave patch patch for art.c :-)

*** art.c.5	Wed Sep 17 11:23:42 1997
--- art.c.6	Fri Oct 10 21:11:35 1997
***************
*** 601,607 ****
  	ARTheaders[_lines].Found = 1;
      }
  
-     if (CrossPosted) {
  	/* Install in header table; STRLEN("Xref: ") == 6. */
  	vp->iov_base = "Xref: ";
  	vp->iov_len = 6;
--- 601,606 ----
***************
*** 609,615 ****
  	vp->iov_base = HDR(_xref);
  	vp->iov_len  = ARTheaders[_xref].Length;
  	size += (vp++)->iov_len;
-     } 
  
      end = vp;
      vp->iov_base = NL;
--- 608,613 ----
***************
*** 659,665 ****
      (void)sprintf(bytesbuff, "Bytes: %ld\n", size);
      for (i = strlen(bytesbuff), vp = iov; vp < end; vp++)
        i += vp->iov_len;
-     if (!CrossPosted)
        i += ARTheaders[_xref].Length;
  
      if (Headers.Data == NULL) {
--- 657,662 ----
***************
*** 673,682 ****
  
      /* Add the data. */
      BUFFset(&Headers, bytesbuff, strlen(bytesbuff));
-     if (!CrossPosted) {
          BUFFappend(&Headers, "Xref: ", 6);
  	BUFFappend(&Headers, HDR(_xref), ARTheaders[_xref].Length);
-     }
      for (vp = iov; vp < end; vp++)
  	BUFFappend(&Headers, vp->iov_base, vp->iov_len);
      Data->Headers = &Headers;
--- 670,677 ----


Technical Details
Message-ID: <6u6rub$d68@dfw-ixnews7.ix.netcom.com>
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
References: <6u6gb9$9gl$1@iniki.dod.hawaii.gov>

Show Full Headers
Complete Article Headers
Message-ID: <6u6rub$d68@dfw-ixnews7.ix.netcom.com>
Subject: Re: enabling xrefslave causes excess rejects
Date: Mon, 21 Sep 1998 00:00:00 +0000
From: bugs@freebsd.netcom.com (Mark Hittinger)
References: <6u6gb9$9gl$1@iniki.dod.hawaii.gov>
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: 393478567
Organization: ICGNetcom
X-NETCOM-Date: Mon Sep 21 7:45:03 PM CDT 1998
Newsgroups: news.software.nntp