🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #13040

[Patch-INN1.5] expireover creates corrupted overview data

#13040
From: Holger Burbach
Date: Fri, 06 Dec 1996 00:00
55 lines
2516 bytes
After rebuilding the overview database from scratch with 'expireover -a',
I encountered many corrupted entries in the overview database which
confused news readers, like knews, a lot.

If expireover finds a folded header line, while processing an article, it
always appends the folded part to the last header line which was accepted
to be stored in the overview database. This creates corrupted entries if
the header contains folded header lines that, according to 'overview.fmt',
should not be stored in the overview database, e.g.

(...)
Message-ID: <Pine.LNX.3.95.961201200357.681B-100000@bse.pumuckl.cubenet.de>
Organization: Bernd Grunwald, not organised
X-Gateway: ZCONNECT UH link-gl.dinoco.de [UUCPfZ V5.81 U031],
        RFC1036/822 UH link-gl.dinoco.de [UUCPfZ V5.81 U031]
(...)

Since we usually want the message-id being inserted in our overview
database, the folded part of the X-Gateway field ("RFC1036/822...") will
be appended to the message-id instead of being ignored.


The appended small patch fixes the problem. This article has also been
mailed to inn-bugs@isc.org.
Ciao
  Holly


--- expireover.c.old    Sat Nov 30 00:32:18 1996
+++ expireover.c        Fri Dec  6 16:40:30 1996
@@ -449,10 +449,13 @@
        if (*line == '\0')
            break;

        /* See if we want this header. */
        fp = ARTfields;
+
+       lasthp = 0;
+
        for (hp = Headers, i = ARTfieldsize; --i >= 0; hp++, fp++) {
            colon = &line[fp->Length];
            if (*colon != ':')
                continue;
            *colon = '\0';


-- 
  Holger Burbach <holly@cthulhu.pfalz.de>, http://www.cck.uni-kl.de/~burbach
        "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn."
-----> PGP public key available: finger burbach@mega.cck.uni-kl.de<--------
--> Key fingerprint =  02 4E 2D 4B AF 91 E6 C8  90 2E 8C A9 AA C4 CB 86<---


Technical Details
Message-ID: <589l1v$fdn$1@cthulhu.pfalz.de>
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

Show Full Headers
Complete Article Headers
Message-ID: <589l1v$fdn$1@cthulhu.pfalz.de>
Subject: [Patch-INN1.5] expireover creates corrupted overview data
Date: Fri, 06 Dec 1996 00:00:00 +0000
From: holly@cthulhu.pfalz.de (Holger Burbach)
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: 202732998
Organization: private linux site, Kaiserslautern, Germany
Content-type: text/plain; charset=us-ascii
Mime-version: 1.0
Newsgroups: news.software.nntp