🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60782

Re: Reminder to filter misplaced yEnc with other binaries

#60782
From: Helmut Kreft
Date: Mon, 30 Sep 2002 03:27
24 lines
1887 bytes
On Sun, 29 Sep 2002 11:49:53 -0700, Russ Allbery wrote:
> This has an unfortunate possibility of false
> positives on posts discussing yEnc if a particularly complete example is
> included without indenting the =ybegin line, so I'll likely add some
> additional checks at some point to avoid those.
> 

Maybe try this one:
    if(($hdr{__BODY__} =~ /(?:
                            ^[ \t|>]*=ybegin\s.*\n
                            (^[ \t|>]*=y.*\n)*
                            (?>.{126,}\n){15}
                          )/mox) && !$gr{binary}) {
        return reject('yencoded binary');
    }

Works great on my machine for several month now.

    Helmut

-- 
Conspiracy is the normal continuation of normal politics by normal means.
                                                        Carl Oglesby
Technical Details
Message-ID: <slrnapfh5s.27oh.kreft@seven.ai-lab.fh-furtwangen.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-stu1.dfn.de!news.belwue.de!news.foo.fh-furtwangen.de!not-for-mail
References: <ylu1k8my0e.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrnapfh5s.27oh.kreft@seven.ai-lab.fh-furtwangen.de>
Subject: Re: Reminder to filter misplaced yEnc with other binaries
Date: Mon, 30 Sep 2002 03:27:56 +0000
From: Helmut Kreft <kreft@unfug.org>
References: <ylu1k8my0e.fsf@windlord.stanford.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-stu1.dfn.de!news.belwue.de!news.foo.fh-furtwangen.de!not-for-mail
Newsgroups: news.software.nntp
Organization: Fachhochschule Furtwangen
Lines: 23
NNTP-Posting-Host: seven.ai-lab.fh-furtwangen.de
X-Trace: fluffy.foo.fh-furtwangen.de 1033356476 39717 141.28.33.148 (30 Sep 2002 03:27:56 GMT)
X-Complaints-To: usenet@news.foo.fh-furtwangen.de
NNTP-Posting-Date: Mon, 30 Sep 2002 03:27:56 +0000 (UTC)
User-Agent: slrn/0.9.7.2 (FreeBSD)