🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72453

Re: Rebuilding overview for single group ?

#72453
From: Christian Kratzer
Date: Mon, 17 Oct 2005 07:02
72 lines
3396 bytes
Hi,

Russ Allbery <rra@stanford.edu> wrote:
> Christian Kratzer <ck+usenet@cksoft.de> writes:
> 
>> Do you have any details how the xref duplication was fixed in stable ?
> 
> Index: innd/art.c
> ===================================================================
> --- art.c       (revision 7237)
> +++ art.c       (working copy)
> @@ -631,7 +631,7 @@
>   if (i == HDR__BYTES)
>     cp->Data.BytesHeader = header;
>   hc = &hc[i];
> -  if (hc->Length > 0) {
> +  if (hc->Length != 0) {
>     /* duplicated */
>     hc->Length = -1;
>   } else {
> @@ -1019,12 +1019,17 @@
>   /* Make sure all the headers we need are there */
>   for (i = 0; i < MAX_ARTHEADER ; i++) {
>     if (hp[i].Type == HTreq) {
> -      if (!HDR_FOUND(i)) {
> +      if (HDR_FOUND(i))
> +        continue;
> +      if (hc[i].Length < 0) {
> +        sprintf(buff, "%d Duplicate \"%s\" header", NNTP_REJECTIT_VAL,
> +                hp[1].Name);
> +      } else {
>        sprintf(buff, "%d Missing \"%s\" header", NNTP_REJECTIT_VAL,
> -         hp[i].Name);
> -       TMRstop(TMR_ARTCLEAN);
> -       return false;
> +                hp[i].Name);
>       }
> +      TMRstop(TMR_ARTCLEAN);
> +      return false;
>     }
>   }
> 
> @@ -1525,6 +1530,7 @@
>     GroupPointers[i++] = ngp;
>     nogroup = false;
>   }
> +  GroupPointers[i] = NULL;
>   if (nogroup)
>     return false;
>   return true;
> 

>From a quick look this looks to me as articles with multiple xref 
headers would be rejected and the articles message-id subsequently
recorded in history.

I am concerned that this would lead to clean versions of the article 
reaching the server through other paths also being rejected.

If above analysis is correct I would propably prefer stripping all 
xref headers from the article.  Might be a bit more complicated to
do in the current code though.

Comments ?

Greetings
Christian

-- 
Christian Kratzer                       ck+usenet@cksoft.de
CK Software GmbH                        http://www.cksoft.de/
Phone: +49 7452 889 135                 Fax: +49 7452 889 136
Technical Details
Message-ID: <divian$40t$2@news.germany.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.germany.com!not-for-mail
References: <did720$lvl$1@news.germany.com> <87fyr9f7l0.fsf@windlord.stanford.edu> <dil4t2$27q$1@news.germany.com> <87oe5tcqe8.fsf@windlord.stanford.edu> <dimako$dv4$1@news.germany.com> <87oe5skcsh.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <divian$40t$2@news.germany.com>
Subject: Re: Rebuilding overview for single group ?
Date: Mon, 17 Oct 2005 07:02:47 +0000
From: Christian Kratzer <ck+usenet@cksoft.de>
References: <did720$lvl$1@news.germany.com> <87fyr9f7l0.fsf@windlord.stanford.edu> <dil4t2$27q$1@news.germany.com> <87oe5tcqe8.fsf@windlord.stanford.edu> <dimako$dv4$1@news.germany.com> <87oe5skcsh.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.germany.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Customers of Headlight GmbH
Lines: 72
Sender: Christian Kratzer <ck@news.germany.com>
NNTP-Posting-Host: news
X-Trace: news.germany.com 1129532567 4125 62.111.101.2 (17 Oct 2005 07:02:47
 GMT)
X-Complaints-To: usenet@news.germany.com
NNTP-Posting-Date: Mon, 17 Oct 2005 07:02:47 +0000 (UTC)
User-Agent: tin/1.7.7-20041215 ("Scalpay") (UNIX) (FreeBSD/6.0-CURRENT (i386))