Rebuild the overview for a single newsgroup
Lars Magne Ingebrigtsen
larsi at gnus.org
Sat Aug 31 23:39:00 UTC 2002
Russ Allbery <rra at stanford.edu> writes:
> I honestly don't know; I just haven't tried it.
I've been fiddling some more, and it stopped complaining about
locking the group.index file. It might have been just a mismatch
between the Debian config and what I had ./configured CURRENT to be.
So, it started creating new overview files, but they were kinda, er,
not valid. The following patch seems to fix things.
I didn't download CURRENT from CVS; I just grabbed the CURRENT
snapshot from the ftp server. Could this be from an outdated version
of overdata.c, or am I just doing something totally wacky?
--- overdata.c~ Mon May 6 07:44:13 2002
+++ overdata.c Sun Sep 1 01:33:34 2002
@@ -72,6 +72,7 @@
warn("field %d is %s, should be %s", field, line,
fields[field]);
}
+ field++;
}
if (QIOerror(qp)) {
if (QIOtoolong(qp)) {
@@ -108,7 +109,6 @@
data = HeaderFindMem(article, length, header, strlen(header));
if (data == NULL)
return;
- data += strlen(header) + 1;
if (ISWHITE(*header))
header++;
end = strchr(data, '\n');
@@ -162,11 +162,13 @@
build_header(article, length, fields[field], overview);
}
for (field = 0; field < extra->count; field++) {
+ buffer_append(overview, "\t", 1);
buffer_append(overview, extra->strings[field],
strlen(extra->strings[field]));
buffer_append(overview, ": ", 2);
build_header(article, length, extra->strings[field], overview);
}
+ buffer_append(overview, "\n", 1);
return overview;
}
--
(domestic pets only, the antidote for overdose, milk.)
larsi at gnus.org * Lars Magne Ingebrigtsen
More information about the inn-workers
mailing list