🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Kai Henningsen Tue, 20 Oct 1998 00:00
Re: META: RFD crossposting
#32338
Author: 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)

Re: META: RFD crossposting
#32345
Author: Andrew Gierth
Date: Tue, 20 Oct 1998 00:00
26 lines
1635 bytes
>>>>> "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?

 Kai> +    Crosscount = Groupcount * Groupcount + Followcount;

YM

    Crosscount = Groupcount + Followcount*Followcount;

surely.

-- 
Andrew.

Re: META: RFD crossposting
#32414
Author: Kai Henningsen
Date: Sat, 24 Oct 1998 00:00
177 lines
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)

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