Article View: news.software.nntp
Article #32414Re: META: RFD crossposting
From: Kai Henningsen
Date: Sat, 24 Oct 1998 00:00
Date: Sat, 24 Oct 1998 00:00
177 lines
6518 bytes
6518 bytes
andrew@erlenstar.demon.co.uk (Andrew Gierth) wrote on 20.10.98 in <8790iadf8h.fsf@erlenstar.demon.co.uk>:
> The following message is a courtesy copy of an article
> that has been posted to news.groups,news.software.nntp as well.
... but didn't make it here for some reason.
> >>>>> "Kai" == Kai Henningsen <kaih> writes:
Kai>> +.BI C count
Kai>> +If this flag is specified, an article will only be sent to the site if
Kai>> +the following is true:
Kai>> +The square of the number of groups it is posted to, plus the number of
Kai>> +groups followups would appear in, is no more than
Kai>> +.I count
Kai>> +newsgroups.
> Eh, surely that is backwards? Should it not be the square of the
> number of groups *followups* appear in, plus the number of groups
> posted to?
You are, of course, quite right.
Fixed patch:
diff -aur inn-2.1-org/doc/newsfeeds.5 inn-2.1/doc/newsfeeds.5
--- inn-2.1-org/doc/newsfeeds.5 Fri Jul 24 15:13:00 1998
+++ inn-2.1/doc/newsfeeds.5 Sat Oct 24 15:04:52 1998
@@ -202,6 +202,15 @@
The default is to do no buffering, sending output as soon as it is
possible to do so.
.TP
+.BI C count
+If this flag is specified, an article will only be sent to the site if
+the following is true:
+The number of groups it is posted to, plus the square of the number of
+groups followups would appear in, is no more than
+.I count
+newsgroups.
+30 is a good value for this flag.
+.TP
.BI F name
This flag specifies the name of the file that should be used if it is
necessary to begin spooling for the site (see below).
@@ -218,6 +227,8 @@
it is posted to no more than
.I count
newsgroups.
+This has the problem of filtering out many FAQs, and also RFDs/CFVs for
+group creation. The C or U flags are a better solution.
.TP
.BI H count
If this flag is specified, an article will only be sent to the site
@@ -291,6 +302,12 @@
.IR "feed types" .
The default is
.IR Tf .
+.TP
+.BI U count
+If this flag is specified, an article will only be sent to the site if
+followups to this article would be posted to no more than
+.I count
+newsgroups.
.TP
.BI W items
If a site is fed by file, channel, or exploder, this flag controls what
diff -aur inn-2.1-org/innd/art.c inn-2.1/innd/art.c
--- inn-2.1-org/innd/art.c Fri Jul 24 15:13:00 1998
+++ inn-2.1/innd/art.c Sat Oct 24 15:03:23 1998
@@ -129,6 +129,7 @@
{ "Relay-Version", HTobs },
{ "NNTP-Posting-Host", HTstd },
{ "Followup-To", HTstd },
+#define _followup_to 26
{ "Organization", HTstd },
{ "Content-Type", HTstd },
{ "Content-Base", HTstd },
@@ -1610,12 +1611,16 @@
int i;
int j;
int Groupcount;
+ int Followcount;
+ int Crosscount;
char *p;
SITE *funnel;
BUFFER *bp;
/* Work out which sites should really get it. */
Groupcount = Data->Groupcount;
+ Followcount = Data->Followcount;
+ Crosscount = Groupcount + Followcount * Followcount;
for (sp = Sites, i = nSites; --i >= 0; sp++) {
if ((sp->IgnoreControl && ControlStore) ||
(sp->NeedOverviewCreation && !OverviewCreated))
@@ -1652,6 +1657,8 @@
if ((sp->Hops && hopcount > sp->Hops)
|| (!sp->IgnorePath && ListHas(hops, sp->Name))
|| (sp->Groupcount && Groupcount > sp->Groupcount))
+ || (sp->Followcount && Followcount > sp->Followcount))
+ || (sp->Crosscount && Crosscount > sp->Crosscount))
/* Site already saw the article; path too long; or too much
* cross-posting. */
continue;
@@ -2284,10 +2291,16 @@
}
/* Parse the Control or Also-Control header. */
+ groups = NGsplit(HDR(_followup_to));
+ for (i = 0; groups[i] != NULL; i++)
+ continue;
+ Data.Followcount = i;
groups = NGsplit(HDR(_newsgroups));
for (i = 0; groups[i] != NULL; i++)
continue;
Data.Groupcount = i;
+ if (Data.Followcount == 0)
+ Data.Followcount = Data.Groupcount;
if (HDR(_control)[0] != '\0')
ControlHeader = _control;
diff -aur inn-2.1-org/innd/innd.h inn-2.1/innd/innd.h
--- inn-2.1-org/innd/innd.h Fri Jul 24 15:13:00 1998
+++ inn-2.1/innd/innd.h Tue Oct 20 21:17:10 1998
@@ -258,6 +258,8 @@
BOOL NeedOverviewCreation;
int Hops;
int Groupcount;
+ int Followcount;
+ int Crosscount;
FEEDTYPE Type;
NEWSGROUP *ng;
BOOL Spooling;
@@ -323,6 +325,7 @@
time_t Arrived;
time_t Expires;
int Groupcount;
+ int Followcount;
int LinesValue;
char Lines[SMBUF];
long SizeValue;
diff -aur inn-2.1-org/innd/newsfeeds.c inn-2.1/innd/newsfeeds.c
--- inn-2.1-org/innd/newsfeeds.c Fri Jul 24 15:13:00 1998
+++ inn-2.1/innd/newsfeeds.c Tue Oct 20 21:13:25 1998
@@ -283,6 +283,12 @@
sp->StopWriting = atoi(p);
}
break;
+ case 'C':
+ if (*++p && CTYPE(isdigit, *p))
+ sp->Crosscount = atoi(p);
+ else
+ sp->Crosscount = 1;
+ break;
case 'F':
if (*++p == '\0')
return "missing file name for F param in field 3";
@@ -341,6 +347,12 @@
case 'p': sp->Type = FTprogram; break;
case 'x': sp->Type = FTexploder; break;
}
+ break;
+ case 'U':
+ if (*++p && CTYPE(isdigit, *p))
+ sp->Followcount = atoi(p);
+ else
+ sp->Followcount = 1;
break;
case 'W':
for (i = 0; *++p && i < FEED_MAXFLAGS; ) {
Kai
--
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
- Russ Allbery (rra@stanford.edu)
Technical Details
Message-ID:
<73TLKWVHw-B@khms.westfalen.de>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:
<6vde0b$q9d$1@vixen.cso.uiuc.edu> <bill-1410981101480001@192.168.1.1> <7082uc$mrc@xochi.tezcat.com> <73DPWi21w-B@khms.westfalen.de> <8790iadf8h.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <73TLKWVHw-B@khms.westfalen.de> Subject: Re: META: RFD crossposting Date: Sat, 24 Oct 1998 00:00:00 +0000 From: kaih=73TLKWVHw-B@khms.westfalen.de (Kai Henningsen) References: <6vde0b$q9d$1@vixen.cso.uiuc.edu> <bill-1410981101480001@192.168.1.1> <7082uc$mrc@xochi.tezcat.com> <73DPWi21w-B@khms.westfalen.de> <8790iadf8h.fsf@erlenstar.demon.co.uk> 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: 404606648 X-Fix-Your-Modem: +++ATS2=255&WO1 Comment: Unsolicited commercial mail will incur an US$100 handling fee per received mail. Organization: Organisation? Me?! Are you kidding? X-No-Junk-Mail: I do not want to get *any* junk mail. Newsgroups: news.software.nntp