Article View: news.software.nntp
Article #46425Re: INN 2.3 Beta makehistory w/o Overview
From: Katsuhiro Kondou
Date: Mon, 15 May 2000 00:00
Date: Mon, 15 May 2000 00:00
61 lines
2847 bytes
2847 bytes
In article <6IIT4.2036$MF1.54800@tengri.easynet.fr>,
benjamin.ryzman@easynet.INVALID (Benjamin Ryzman) wrote;
} While trying out inn-BETA-20000514, I get the following:
} $ /usr/news/bin/makehistory -b -f history.n -l 600000
} 'Xref:full' must be included in /var/news/etc/overview.fmt
}
} Xref:full is however included in my overview.fmt.
}
} Checking at expire/makehistory.c I find that Xrefp is set only when running
} makehistory -O and thus it will exit(1) whenever one doesn't use Overview.
:
} I've tried a crude patch, but Xrefp is used everywhere else, and I'm not
} sure what to do.
}
} I'm back to inn-2000-03-07 for now, but could someone please explain to me
} what I overlooked?
That's my mistake. Try attached.
--- makehistory.c.orig Fri May 12 15:50:31 2000
+++ makehistory.c Mon May 15 11:39:50 2000
@@ -463,7 +463,7 @@
Missfieldsize++;
if (Expp == (ARTOVERFIELD *)NULL)
Missfieldsize++;
- if (Xrefp == (ARTOVERFIELD *)NULL || !foundxreffull) {
+ if (Overview && (Xrefp == (ARTOVERFIELD *)NULL || !foundxreffull)) {
(void)fprintf(stderr, "'Xref:full' must be included in %s\n", SchemaPath);
exit(1);
}
@@ -497,6 +497,15 @@
fp->HeaderLength = 0;
Expp = fp++;
}
+ if (Overview && Xrefp == (ARTOVERFIELD *)NULL) {
+ fp->NeedHeadername = FALSE;
+ fp->Headername = COPY(XREF);
+ fp->HeadernameLength = strlen(XREF)-1;
+ fp->Header = (char *)NULL;
+ fp->HasHeader = FALSE;
+ fp->HeaderLength = 0;
+ Xrefp = fp++;
+ }
}
}
@@ -584,7 +593,7 @@
}
}
}
- if (Xrefp->HeaderLength == 0) {
+ if (DoOverview && Xrefp->HeaderLength == 0) {
if (!SMprobe(SMARTNGNUM, art->token, (void *)&ann)) {
Xrefp->Header = NULL;
Xrefp->HeaderLength = 0;
--
Katsuhiro Kondou
Technical Details
Message-ID:
<8fnock$lvl$1@newstest.mesh.ad.jp>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-mailReferences:
<6IIT4.2036$MF1.54800@tengri.easynet.fr>Show Full Headers
Complete Article Headers
Message-ID: <8fnock$lvl$1@newstest.mesh.ad.jp> Subject: Re: INN 2.3 Beta makehistory w/o Overview Date: Mon, 15 May 2000 00:00:00 +0000 From: Katsuhiro Kondou <kondou@isc.org> References: <6IIT4.2036$MF1.54800@tengri.easynet.fr> 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: 623449736 Sender: kondou@mms.mt.nec.co.jp Content-Type: text/plain; charset=US-ASCII X-Complaints-To: newsadmin@mesh.ad.jp X-Trace: newstest.mesh.ad.jp 958358741 22517 133.205.63.243 (15 May 2000 02:45:41 GMT) Organization: One of Volunteers of INN development, Tokyo JAPAN Mime-Version: 1.0 (generated by SEMI 1.8.6 - "Fukuoka") User-Agent: SEMI/1.8.6 (Fukuoka) FLIM/1.9.1 (Tonoshล) Emacs/20.2 MULE/3.0 (MOMIJINOGA) NNTP-Posting-Date: 15 May 2000 02:45:41 GMT Newsgroups: news.software.nntp