Thread View: news.software.nntp
3 messages
3 total messages
Started by J. Rappe
Thu, 14 Oct 2004 11:33
truncated newsgroups header
Author: J. Rappe
Date: Thu, 14 Oct 2004 11:33
Date: Thu, 14 Oct 2004 11:33
7 lines
1278 bytes
1278 bytes
We're running INN for a small server that carries mostly internal groups and a handful of public groups that users have requested. The problem we have is that clients that use xhdr to to grab the Newsgroups header get a truncated version apparently constructed from Xref. Is there some configuration option that would cause the server to return the full header?
Re: truncated newsgroups header
Author: Jeffrey M. Vinocur
Date: Thu, 14 Oct 2004 13:31
Date: Thu, 14 Oct 2004 13:31
57 lines
3246 bytes
3246 bytes
In article <cklo77$79u$1@e250.ripco.com>, J. Rappe <jrappe@gmx.net> wrote:
>We're running INN for a small server that carries mostly internal
>groups and a handful of public groups that users have requested.
>The problem we have is that clients that use xhdr to to grab the
>Newsgroups header get a truncated version apparently constructed
>from Xref. Is there some configuration option that would cause
>the server to return the full header?
Wow, I'd never seen that behavior mentioned before. You are,
however, absolutely correct. The reason INN does this is that
Newsgroups is not stored in the overview database, and so there's
quite a bit of overhead to returning the correct Newsgroups
header.
However, in a small server, I expect this wouldn't be a problem.
There is no configuration option, but it's a very small patch to
nnrpd. I haven't tested this, but I'm pretty confident it will
work.
The file you need to change is nnrpd/article.c, in the function
CMDpat(), there's a block of code like this:
/* In overview? */
if (strcasecmp(header, "Newsgroups") == 0) {
BuildingNewsgroups = true;
Overview = overview_index("Xref", OVextra);
} else
Overview = overview_index(header, OVextra);
That's the special casing for the reason I described above. So
simply comment out the special case:
/* In overview? */
/* disable effecient-but-incorrect "XHDR Newsgroups" behavior:
if (strcasecmp(header, "Newsgroups") == 0) {
BuildingNewsgroups = true;
Overview = overview_index("Xref", OVextra);
} else
*/
Overview = overview_index(header, OVextra);
Then recompile and you should be fine. (There are a couple other
bits of code that now become useless, but a decent compiler
should take care of removing them for you so I wouldn't worry
about it.)
It would be pretty easy to add a configuration option for this,
even to make it customizable in various ways, but I don't know
how often people need this feature.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: truncated newsgroups header
Author: J. Rappe
Date: Fri, 15 Oct 2004 04:20
Date: Fri, 15 Oct 2004 04:20
8 lines
1209 bytes
1209 bytes
Jeffrey M. Vinocur wrote: > There is no configuration option, but it's a very small patch to > nnrpd. I haven't tested this, but I'm pretty confident it will > work. Thanks. Seems to work fine.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads