🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3741

INN Bad Overview Problem

#3741
From: Dave Barr
Date: Tue, 01 Aug 1995 00:00
40 lines
1981 bytes
In article <3vlvb4$g8c@salt.ncinter.net>,
Ian Smith <iansmith@pepper.ncinter.net> wrote:
>The problem is in the news article itself.  There is a ctrl-m inside
>the refrences line.. obviously a bad header.  Shouldn't this be handled
>by inn or the overview system though?  I don't want to refuse articles
>with bad refrences lines, but would like the mangled line to be deleted
>before being processed.  Any way to do this?

Hm.  I haven't tested this, but try the following patch:
(depending on your INN version you may have some fuzz)

This will only fix expireover so it can correct the problem, a
corresponding fix to overchan (or innd) is needed.

*** expireover.c.orig	Tue Aug  1 18:09:18 1995
--- expireover.c	Tue Aug  1 18:10:12 1995
***************
*** 477,483 ****
  	    }
  	    (void)strcpy(hp->Header, p);
  	    for (p = hp->Header; *p; p++)
! 		if (*p == '\t' || *p == '\n')
  		    *p = ' ';
  	    hp->HasHeader = TRUE;
  	}
--- 477,483 ----
  	    }
  	    (void)strcpy(hp->Header, p);
  	    for (p = hp->Header; *p; p++)
! 		if (*p == '\t' || *p == '\n' || *p == '\r')
  		    *p = ' ';
  	    hp->HasHeader = TRUE;
  	}


Please let me know if this fixes the problem.

--Dave

Technical Details
Message-ID: <3vm910$80n@dodgson.math.psu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.bsd.bsdi.misc.mbox.zip!not-for-mail
References: <3vlt6f$g16@salt.ncinter.net> <3vlv26$g6d@salt.ncinter.net> <3vlvb4$g8c@salt.ncinter.net>

Show Full Headers
Complete Article Headers
Message-ID: <3vm910$80n@dodgson.math.psu.edu>
Subject: INN Bad Overview Problem
Date: Tue, 01 Aug 1995 00:00:00 +0000
From: barr@math.psu.edu (Dave Barr)
References: <3vlt6f$g16@salt.ncinter.net> <3vlv26$g6d@salt.ncinter.net> <3vlvb4$g8c@salt.ncinter.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.bsd.bsdi.misc.mbox.zip!not-for-mail
X-Deja-AN: 107269022
Distribution: inet
Supersedes: <3vm8s4$80k@dodgson.math.psu.edu>
Organization: Mathematics Department, The Pennsylvania State University
Newsgroups: comp.unix.bsd.bsdi.misc,news.software.nntp