Article View: news.software.nntp
Article #48961Re: Overview (buffindexed) questions -- INN 2.3.1
From: Mandelbrot Meowbot
Date: Sat, 28 Oct 2000 22:34
Date: Sat, 28 Oct 2000 22:34
126 lines
5908 bytes
5908 bytes
I SHALL NOW BREACH ALL MANNER OF USENET NETIQUETTE BY WANTONLY
AND SHAMELESSLY FOLLOWING UP TO MY OWN POST
> http://news.inet.tele.dk/innreport/news-notice.2000.10.25-04.30.52.html#nnrpd_xhdr_commands
Idiot. Maybe you'd have better luck pointing people at
http://news.inet.tele.dk/innreport/news-notice.2000.10.25-04.30.52.html#nnrpd_xhdr_cmds
If you're too cheap to invest in a mouse, at least proofread your drivel.
> Is this a bad thing? Should I leave overview.fmt alone? Am I breaking
> what readers expect to see when giving the `xover' command?
And if not, why not.
> It appears that by adding the `Path:' header to the stored overview
> data, I've b0rkened something. Looking at the raw overview data, I
> see that the separating `!' characters between elements of the Path
> header have been replaced by NUL characters. Kewl.
That was pretty easy to track down and fix. The following hack
enables me to write a proper and justifiable Path: header
--- art.c-Before-OV-Path Wed Oct 11 20:11:05 2000
+++ art.c Sat Oct 28 22:46:14 2000
@@ -492,13 +492,15 @@
}
}
- if (NeedPath) {
+/* XXXXX stash a copy of the Path header... ALSO NeedPath no longer needed
+ in other file newsfeeds.c
+ if (NeedPath) { */
Data->Path = path;
for (i = Data->Body - path; --i >= 0; path++)
if (*path == '\r' || *path == '\n')
break;
Data->PathLength = path - Data->Path;
- }
+/* XXXX } */
if (ARTheaders[_lines].Found == 0) {
sprintf(Data->Lines, "Lines: %d\r\n", Data->LinesValue);
@@ -1960,6 +1962,14 @@
/* HDR(_newsgroups) is separated by '\0', so use Data->Newsgroups
instead */
BUFFappend(&Overview, Data->Newsgroups, Data->NewsgroupsLength);
+ } else if (caseEQ(hp->Name, "Path")) {
+ /* HDR(_path) is separated by '\0', so use Data->Path and others
+ instead */
+ if (!Hassamepath)
+ BUFFappend(&Overview, Path.Data, Path.Used);
+ if (AddAlias)
+ BUFFappend(&Overview, Pathalias.Data, Pathalias.Used);
+ BUFFappend(&Overview, Data->Path, Data->PathLength);
} else {
BUFFappend(&Overview, hp->Value, hp->Length);
}
> This seems to break a few things. Like the `xover' command. Hmmm.
> And any overview data following the `Path' data.
Now these both work as before. Oh well.
> This makes me think that nnrpd's `xhdr' command returns data from
> the overview proper when the header is given without the `:' colon,
> but has to go to the spool and pull it out of the article proper
> when I do specify the `header:' with a colon. Not sure if this is
> intended behaviour, if I should even be including the colon, or
It's probably an Undocumented Feature that can be used in cases of
emergency or suspected overview problems, but since I haven't logged
anyone giving those commands, I don't think I'll run into it in Real
Life, and I wouldn't have if I had not b0rkened the Xref: xover header
in unexpected and mysterious ways in the first place.
> what...
Read my lips, bay-bee
> Anyway, the next thing I noted is that while I'm using a virtualpath
> or whatever that is added to the headers as returned by `article' or
> `head', I don't get these in the `xhdr' headers.
But I do get a proper virtualpath added/replacing the Xref: header
in both the `xover' and `xhdr xref ##' commands. The fact that I
can bypass this and get to the raw article data was only a freak
accident.
> Next weirdness seems to be that innd will happily write the overview
> data for buffindexed itself, but if I pass the duties to overchan, it
> writes nothing.
Well DUH, if I'm trying to write `NUL' characters, no wonder. Now
that I'm no longer doing this, it works fine as expected. I should
be the posterchild for waiting an hour before posting...
> are plans to fix the apparently missing things like virtualhost
The Path: header virtualhost, if it worked when I wasn't writing
this into overview, now is b0rken, while the Xref: header is fine.
I've added Path:full like Xref:full to the overview.fmt file, and
it should be relatively painless to duplicate the Xref virtualpath
functionality into the Path header for both xover and xhdr retrieved
from overview.
If I'm not ruining things by attempting to mix Path header data in
the rest of the overview data, that is. Anyway, with the above
simple patch, I've solved most of the rest of my misery.
> One final question -- I'm having a bit of difficulty porting INN 1.0
> to the ENIAC so if anyone would like to give me a hand I'd appreciate it
I'd just like to take a moment to thank everyone for the rounds of
applause, *sniff* you don't know how much it means to me...
Technical Details
Message-ID:
<meowbot-AutoPost-03-100000@netscum.dQ>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!supernews.google.com!sn-xit-02!sn-xit-03!sn-xit-uk!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!colt.net!news.tele.dk!Free-PR0N.NetScum.DK.POSTED!vax.chrillesen.dk!barryReferences:
<meowbot-AutoPost-02-100000@netscum.dQ>Show Full Headers
Complete Article Headers
Message-ID: <meowbot-AutoPost-03-100000@netscum.dQ> Subject: Re: Overview (buffindexed) questions -- INN 2.3.1 Date: Sun, 29 Oct 2000 00:34:52 +0200 From: Mandelbrot Meowbot <meowbot@Clueless.NewsBastards.Org> References: <meowbot-AutoPost-02-100000@netscum.dQ> 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!supernews.google.com!sn-xit-02!sn-xit-03!sn-xit-uk!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!colt.net!news.tele.dk!Free-PR0N.NetScum.DK.POSTED!vax.chrillesen.dk!barry Newsgroups: news.software.nntp Organization: Binging Beerbellied Barry Bouwsma's Beerserver Lines: 125 NNTP-Posting-Host: 3167c9bec77aad169c717ee8739c7963.netscum.dk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: freebeer.netscum.dk 972772493 7bd4622fb0a3b6655afee6f50a17b017 X-Complaints-To: Department of Beer <bitbucket@news.inet.tele.dk> X-Sender: barry@vax.chrillesen.dk In-Reply-To: <meowbot-AutoPost-02-100000@netscum.dQ>