Article View: news.software.nntp
Article #18793Re: Control Group
From: Michael Hucka
Date: Fri, 27 Jun 1997 00:00
Date: Fri, 27 Jun 1997 00:00
44 lines
2529 bytes
2529 bytes
>>>>> On 25 Jun 1997, ken@angel.uunet.ca (Ken Lalonde) wrote:
ken> As I understand it, when a control message is posted to foo.bar, innd
ken> marks all receiving sites by setting Sites[i].Sendit = TRUE. Let's
ken> assume that set includes overchan. It then notices that this is a
ken> cancel message that is not posted to "to.*", so it resets the list of
ken> newsgroups to "control.cancel", then adds any sites that want that
ken> group. The cARTpost(), near the end of innd/art.c, to read as
ken> follows:
ken> /* And finally, send to everyot) {
ken> /* Don't send control articles to overchan */
ken> if (sp->Type == FTchannel && /* optimization */
ken> strchr(sp->FileFlags, FEED_OVERVIEW) != NULL)
ken> continue;
ken> }
This seems like a good idea. Unfortunately, your posting apparently got
mangled somewhere between here and your site (e.g., note the truncated first
line of the code). However, it was enough to let me reconstruct the patch.
Here it is, in case anyone else is interested. (Note: line numbers will be
off because this is against a locally-patched INN 1.5.1.)
RCS file: RCS/art.c,v
retrieving revision 1.68.1.2
diff -r1.68.1.2 art.c
2287c2287,2291
< for (sp = Sites, i = nSites; --i >= 0; sp++)
---
> for (sp = Sites, i = nSites; --i >= 0; sp++) {
> /* Optimization: don't send control articles to overchan */
> if (ControlHeader >= 0 && sp->Type == FTchannel &&
> strchr(sp->FileFlags, FEED_OVERVIEW) != NULL)
> continue;
2289a2294
> }
--
Mike Hucka hucka@umich.edu http://www.eecs.umich.edu/~hucka University
PhD to be, computational models of human visual processing (AI Lab) of
UNIX systems administrator & programmer/analyst (EECS DCO) Michigan
Technical Details
Message-ID:
<82wwngugdr.fsf@manic.eecs.umich.edu>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:
<5ojg51$t4t@shell.monmouth.com> <5orcsn$fi9@news.bu.edu> <82bu4u4ocj.fsf@manic.eecs.umich.edu> <5orqvk$7k@angel.uunet.ca>Show Full Headers
Complete Article Headers
Message-ID: <82wwngugdr.fsf@manic.eecs.umich.edu> Subject: Re: Control Group Date: Fri, 27 Jun 1997 00:00:00 +0000 From: Michael Hucka <hucka@eecs.umich.edu> References: <5ojg51$t4t@shell.monmouth.com> <5orcsn$fi9@news.bu.edu> <82bu4u4ocj.fsf@manic.eecs.umich.edu> <5orqvk$7k@angel.uunet.ca> 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: 253001040 Distribution: inet To: ken@angel.uunet.ca (Ken Lalonde) Organization: University of Michigan EECS, Ann Arbor, Mich., USA Newsgroups: news.software.nntp