🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60779

Re: Reminder to filter misplaced yEnc with other binaries

#60779
From: Russ Allbery
Date: Sun, 29 Sep 2002 23:52
27 lines
2034 bytes
J B Moreno <planb@newsreaders.com> writes:

> Not sure how the filters work, but would 
>     if ($hdr{__BODY__} =~ m%^=ybegin (.+)\n.{128,129}$%m) {
>         local $_ = $1;
>         if (/line=/ && /size=/ && /name=/) {
>             return 1;
>         }
>     }

> avoid the problem -- the vast majority of yEnc post use a line of 128
> which allows for a line length of 128 or 129, so unless it's a *really*
> complete or extremely small binary, the next line ought to one or the
> other.

Nope, the next line may be =ypart.

What I'm more worried about is avoiding false positives on small samples,
so I may instead just parse out the line length count and then require
that there be at least 40 adjacent lines with that line length.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <yllm5kl5g1.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!nntp.stanford.edu!not-for-mail
References: <ylu1k8my0e.fsf@windlord.stanford.edu> <290920021931093634%planb@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <yllm5kl5g1.fsf@windlord.stanford.edu>
Subject: Re: Reminder to filter misplaced yEnc with other binaries
Date: Sun, 29 Sep 2002 16:52:14 -0700
From: Russ Allbery <rra@stanford.edu>
References: <ylu1k8my0e.fsf@windlord.stanford.edu> <290920021931093634%planb@newsreaders.com>
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!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 26
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1033343534 25755 171.64.13.23 (29 Sep 2002 23:52:14 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter,
 sparc-sun-solaris2.6)
Cancel-Lock: sha1:piQlukGTso9Nx2cxHgwWGStItzU=