🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #32338

Re: META: RFD crossposting

#32338
From: Kai Henningsen
Date: Tue, 20 Oct 1998 00:00
180 lines
6841 bytes
Note Followups.

josephb@tezcat.com (Joe Bernstein)  wrote on 16.10.98 in <7082uc$mrc@xochi.tezcat.com>:

[snip]

> The problem is that there's a way to do it *without* killing FAQs by
> the million, not to mention my RFD (which the last time I checked hadn't
> caused anything resembling a "war" here).  Kai Henningsen proposed
> a formula two years ago or so for rewarding cross-posts for limiting
> followups.  Now, I understand that news-admins might not want to
> install this as a patch when they can just use the G setting in INN
> to do it for them, but honestly, the idea of a service that calls itself
> "Newsguy" but does not provide access to the majority of FAQs simply
> is such an absurd travesty of any Usenet I've ever known that I don't
> know where to begin answering it.

[snip]

I've heard this just once too often.

So I ftp'd me the INN 2.1 sources and made a patch. This _should_ work,  
but I won't make any guarantees.

How about putting this (or something similar) into the next INN release?

diff -ur 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	Tue Oct 20 21:30:44 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 square of the number of groups it is posted to, plus 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
Only in inn-2.1/doc: newsfeeds.5~
diff -ur 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	Tue Oct 20 21:26:29 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 * Groupcount + 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;
Only in inn-2.1/innd: art.c~
diff -ur 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 -ur 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: <73DPWi21w-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-mail
References: <6vde0b$q9d$1@vixen.cso.uiuc.edu> <36296724.106827749@news.newsguy.com> <6vpcbd$cig@huitzilo.tezcat.com> <bill-1410981101480001@192.168.1.1> <7082uc$mrc@xochi.tezcat.com>

Show Full Headers
Complete Article Headers
Message-ID: <73DPWi21w-B@khms.westfalen.de>
Subject: Re: META: RFD crossposting
Date: Tue, 20 Oct 1998 00:00:00 +0000
From: kaih=73DPWi21w-B@khms.westfalen.de (Kai Henningsen)
References: <6vde0b$q9d$1@vixen.cso.uiuc.edu> <36296724.106827749@news.newsguy.com> <6vpcbd$cig@huitzilo.tezcat.com> <bill-1410981101480001@192.168.1.1> <7082uc$mrc@xochi.tezcat.com>
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: 403310424
X-Fix-Your-Modem: +++ATS2=255&WO1
Followup-To: news.software.nntp
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.groups,news.software.nntp