🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8338

Re: patch to innd to screen wide crossposts

#8338
From: Eric Pettersen
Date: Thu, 06 Jun 1996 00:00
105 lines
5127 bytes
barr@math.psu.edu (Dave Barr) wrote:
> In article <4p4s4t$oa2@cgl.ucsf.edu>, Eric Pettersen <pett@cgl.ucsf.edu>
> wrote:
> >I was surprised by how many articles are rejected even with the threshold
> >set at 25.  Since applying the patch yesterday, about 24 hours ago,
> >~400 articles were rejected by it.  The limit could be much lower.  It
> >wouldn't be out of line to make the limit 12, or even 6.
> 
> If I recall, there's a FAQ posted to news.answers which is crossposted
> to 14 newsgroups.

Checking my spool (I've been screening for 2 days but I keep FAQs for 14),
there are 6 FAQs posted to 14 or more groups, with the widest one going
to 25 groups.  Just for the curious, that one is:

ISO 8859-1 National Character Set FAQ

which goes to:

comp.unix.questions,comp.unix.admin,comp.windows.x,comp.std.internat,comp.sof
tware.international,at.general,soc.culture.german,soc.culture.french,soc.cult
ure.belgium,soc.culture.quebec,soc.culture.nordic,soc.culture.spain,soc.cultu
re.portuguese,soc.culture.latin-american,soc.culture.brazil,soc.culture.argen
tina,soc.culture.mexico,soc.culture.colombia,soc.culture.venezuela,soc.cultur
e.peru,soc.culture.chile,soc.culture.italian,bit.listserv.catala,comp.answers
,soc.answers,news.answers

So, if you cranked the limit down as low as I mentioned above, you might
want to have exemptions for *.answers and *.announce.  Using an idea
suggested to me by Jason Fesler in e-mail, the patch would then be:

*** art.c.orig  Wed Jun 05 13:42:43 1996
--- art.c       Thu Jun 06 11:37:54 1996
***************
*** 1680,1685 ****
--- 1680,1686 ----
      BOOL              CrossPosted;
      BOOL              ToGroup;
      BOOL              GroupMissing;
+     BOOL              OverCrossposted;
      BUFFER            *article;
      char              linkname[SPOOLNAMEBUFF];
      char              **groups;
***************
*** 1902,1912 ****
       * If ngp == GroupPointers, then all the new articles newsgroups are
       * "j" entries in the active file.  In that case, we have to file it
       * under junk so that downstream feeds can get it. */
!     if (!Accepted || ngptr == GroupPointers) {
!       if (!Accepted) {
!           (void)sprintf(buff, "%d Unwanted newsgroup \"%s\"",
!               NNTP_REJECTIT_VAL,
!               MaxLength(HDR(_newsgroups), HDR(_newsgroups)));
            ARTlog(&Data, ART_REJECT, buff);
  #if   defined(DONT_WANT_TRASH)
  #if   defined(DO_REMEMBER_TRASH)
--- 1903,1923 ----
       * If ngp == GroupPointers, then all the new articles newsgroups are
       * "j" entries in the active file.  In that case, we have to file it
       * under junk so that downstream feeds can get it. */
! #define MAX_CROSSPOST 25
!     OverCrossposted = Data.Groupcount > MAX_CROSSPOST
!       && strstr(".announce",HDR(_newsgroups))
!       && strstr(".answers",HDR(_newsgroups));
!     if (!Accepted || OverCrossposted || ngptr == GroupPointers){
!       if (!Accepted || OverCrossposted) {
!           if (!Accepted)
!               (void)sprintf(buff, "%d Unwanted newsgroup \"%s\"",
!                   NNTP_REJECTIT_VAL,
!                   MaxLength(HDR(_newsgroups), HDR(_newsgroups)));
!           else
!               (void)sprintf(buff,
!                   "%d Unwanted large crosspost \"%s\" (%d groups)",
!                   NNTP_REJECTIT_VAL, MaxLength(HDR(_subject), 
HDR(_subject)),
!                   Data.Groupcount);
            ARTlog(&Data, ART_REJECT, buff);
  #if   defined(DONT_WANT_TRASH)
  #if   defined(DO_REMEMBER_TRASH)
***************
*** 1924,1930 ****
             * we should throw the article away:  if you have define
             * DO_WANT_TRASH, then you want all trash except that which
             * you explicitly excluded in your active file. */
!           if (!GroupMissing) {
                if (distributions)
                    DISPOSE(distributions);
                ARTreject(buff, article);
--- 1935,1941 ----
             * we should throw the article away:  if you have define
             * DO_WANT_TRASH, then you want all trash except that which
             * you explicitly excluded in your active file. */
!           if (!GroupMissing || OverCrossposted) {
                if (distributions)
                    DISPOSE(distributions);
                ARTreject(buff, article);


---
			Eric Pettersen
			pett@cgl.ucsf.edu (NeXTmail capable)


Technical Details
Message-ID: <4p78rg$pno@cgl.ucsf.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-mail
References: <4p4s4t$oa2@cgl.ucsf.edu> <4p5fuu$ir0@augusta.math.psu.edu>

Show Full Headers
Complete Article Headers
Message-ID: <4p78rg$pno@cgl.ucsf.edu>
Subject: Re: patch to innd to screen wide crossposts
Date: Thu, 06 Jun 1996 00:00:00 +0000
From: pett@cgl.ucsf.edu (Eric Pettersen)
References: <4p4s4t$oa2@cgl.ucsf.edu> <4p5fuu$ir0@augusta.math.psu.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-mail
X-Deja-AN: 158832917
Distribution: inet
Organization: UCSF Computer Graphics Lab
Newsgroups: news.software.nntp,news.software.b