🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73102

Re: Filter yEnc postings

#73102
From: wkronert
Date: Tue, 24 Jan 2006 11:30
35 lines
2289 bytes
Steve <fleegle@bananasplit.info> wrote:
> Hello,
> I run a small news service that carries a small subsection of Usenet.
> At the moment it's being plagued by people posting hundreds of yEnc
> messages to non-binary groups.  I have cleanfeed installed but I don't
> believe it treats these postings as binaries.

> I could probably hack something together in cleanfeed to filter them
> based on the article length, but I suspect there is probably a better
> solution.  Could anyone advise me please?

The old version of cleanfeed, from Jeremy, did not have a filter for yEnc.
You can add in a filter.  I was given the following which work well when I
had the old version running:

        #yEnc Binary Filter
                if ($hdr{__BODY__} =~ /^(\s*\n)?\=ybegin/ ) {
                return reject('yEnc post');
        }


If you are using the new version of cleanfeed from Marco
http://www.bofh.it/~md/cleanfeed/ it does have a
yEnc filter already in the code, i.e.:

     if ($hdr{__BODY__} =~ /^=ybegin (.+)$/m) {
                local $_ = $1;
                if (/line=/ and /size=/ and /name=/) {
                        $Cache_Is_Binary = 1;
                        return 1;

Hope that may help.

Bill
Technical Details
Message-ID: <dr5351$a56$1@gondor.sdsu.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!not-for-mail
References: <dr515q$3cc$1@bananasplit.info>

Show Full Headers
Complete Article Headers
Message-ID: <dr5351$a56$1@gondor.sdsu.edu>
Subject: Re: Filter yEnc postings
Date: Tue, 24 Jan 2006 11:30:41 +0000
From: wkronert@sunstroke.sdsu.edu
References: <dr515q$3cc$1@bananasplit.info>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: San Diego State University, College of Sciences
Lines: 35
Sender: William Kronert <wkronert@sciences.sdsu.edu>
Reply-To: wkronert@sunstroke.sdsu.edu
NNTP-Posting-Host: sciences.sdsu.edu
X-Trace: gondor.sdsu.edu 1138102241 10406 130.191.140.33 (24 Jan 2006 11:30:41
 GMT)
X-Complaints-To: news@gondor.sdsu.edu
NNTP-Posting-Date: Tue, 24 Jan 2006 11:30:41 +0000 (UTC)
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (SunOS/5.9
 (sun4u))