🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #28372

Re: Cancels

#28372
From: Doug S
Date: Mon, 25 May 1998 00:00
84 lines
3464 bytes
Thus spake brian moore <bem@news.cmc.net>:
>On 24 May 98 03:33:37 GMT, 
> System Administrator <homer@light.lightlink.com> wrote:
>>      I am presently not accepting cancels.
>
>I stopped accepting and propogating them 6 weeks ago.  Works pretty
>damned well if you run Cleanfeed or the Hippo.

I still accept cancels, but... (see below)

>>      Cancels used to serve a good purpose, but now are mainly used to
>> cancel spam.  The spammers hate this no end, and take to resposting
>> their spam, which then is canceled again.  This causes double, triple
>> bandwidth for no good reason.
>
>That and cancels are becoming a part of the problem by their sheer
>volume.
>
>> feed basis, so either they follow the same policy sitewide or they
>> don't.
>
>My peers can offer 'em all they want.  INN will pretend any message
>with /^<cancel./ for a message ID is already here.  I have a HUGE
>refuse rate now. :)

I just wrote a patch for nc.c (fits inn 1.7.2+insync-1.1d, probably
not too hard to fit to other versions) that catches Message-ID's that
begin with "<cancel." on IHAVE and CHECK requests, and replies 435
and 438 respectively - "I already have it".

Since I run cleanfeed I don't see this as a big problem, and there's
no-one I feed that doesn't have other feeds. It would be no worse for
them than if I aliased out cyberspam in their newsfeeds.

I've been running it for a half-hour so far, and my refuse rate has
jumped tremendously.  And since I don't accept then toss the article
(as would happen if I aliased out cyberspam in the ME line or
cleanfeed) should get more "useful" incoming articles.

Here's the patch:

*** nc.c.orig	Fri Dec 12 11:56:23 1997
--- nc.c	Mon May 25 09:21:51 1998
***************
*** 639,644 ****
--- 639,651 ----
      if (NCbadid(cp, p))
  	return;
  
+     /* is this a <cancel. message-id ? if so, zap it - DMS */
+     if (strncmp(p,"<cancel.",8) == 0) {
+         cp->Refused++;
+         NCwritereply(cp, NNTP_HAVEIT);
+         return;
+         }
+ 
      /* compute msg id hash for pre-commit cache check */
      NCprecomval = dbzhash(p, strlen(p));
      NCprecompos = NCprecomval % NCPRECOMCACHESIZE;
***************
*** 1575,1580 ****
--- 1582,1594 ----
  	syslog(L_NOTICE, "%s bad_messageid %s", CHANname(cp), MaxLength(p, p));
  	return;
      }
+ 
+     /* is this a <cancel. message-id ? if so, zap it - DMS */
+     if (strncmp(p,"<cancel.",8) == 0) {
+         (void)sprintf(cp->Sendid.Data, "%d %s", NNTP_ERR_GOTID_VAL, p);
+         NCwritereply(cp, cp->Sendid.Data);
+         return;
+         }
  
      /* compute msg id hash for pre-commit cache check */
      NCprecomval = dbzhash(p, msglen - 5);

-- 
Doug S. (doug@cc.ysu.edu) (http://cc.ysu.edu/~doug/)

If you get hung up on what you did wrong, you're never gonna get anywhere.
        -- Kenneth Copeland

Technical Details
Message-ID: <6kbt91$gbm@unix1.cc.ysu.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: <35679511.0@news2.lightlink.com> <slrn6mf9hn.qcs.bem@thorin.cmc.net>

Show Full Headers
Complete Article Headers
Message-ID: <6kbt91$gbm@unix1.cc.ysu.edu>
Subject: Re: Cancels
Date: Mon, 25 May 1998 00:00:00 +0000
From: doug@cc.ysu.edu (Doug S)
References: <35679511.0@news2.lightlink.com> <slrn6mf9hn.qcs.bem@thorin.cmc.net>
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: 356333670
Organization: Youngstown State University
Newsgroups: news.software.nntp