Article View: news.software.nntp
Article #73131Re: Filter yEnc postings
From: Sylvain Robitaille
Date: Thu, 26 Jan 2006 03:49
Date: Thu, 26 Jan 2006 03:49
37 lines
3004 bytes
3004 bytes
Marco d'Itri wrote:
> INN has a bug which makes (some?) pattern matching operations
> against $hdr{__BODY__} fail, so cleanfeed misses the binaries.
In case it helps, the following seems to work quite well on my Inn-2.4.2
installation, (line numbers are against a significantly modified
cleanfeed-0.95.7a, and please excuse the long lines):
@@ -858,6 +871,10 @@
(($hdr{"__BODY__"} =~ /(?:^[\t >]*$base64_chars{59,76}[\t ]*\r?\n){$config{'max_encoded_lines'}}/mo) ||
($hdr{"__BODY__"} =~ /(?:^[\t >]*M$uu_chars{60,61}[\t ]*\r?\n){$config{'max_encoded_lines'}}/mo)) &&
(return reject ("Binary in non-binary group"));
+ # 2002/10/22 Sylvain Robitaille
+ # Separate check for yEnc encoded posts:
+ $hdr{"__BODY__"} =~ /^\s*=ybegin\s+/m &&
+ return reject ("yEnc encoding in non-binary group");
}
}
}
That's only slightly different than the patch that was suggested a few
posts previously in this thread, but the above has not let through any
misplaced yEnc encoded binaries (that I've become aware of) since the
day I put it into place, and has so far today resulted in 13012 rejected
messages, according to news.notice.
(I hope it's a useful data point, anyway ...)
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Systems and Network analyst / Newsmaster Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Technical Details
Message-ID:
<slrndtghlf.smg.syl@alcor.concordia.ca>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!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newspeer.monmouth.com!nntp.abs.net!news2.wam.umd.edu!elk.ncren.net!newsflash.concordia.ca!not-for-mailReferences:
<dr515q$3cc$1@bananasplit.info> <dr5351$a56$1@gondor.sdsu.edu> <dr54hm$6a3$1@bananasplit.info> <dr57mg$cj5$1@gondor.sdsu.edu> <dr5fsd$f5u$1@gondor.sdsu.edu> <dr5nlg$b03$1@wonderland.linux.it>Show Full Headers
Complete Article Headers
Message-ID: <slrndtghlf.smg.syl@alcor.concordia.ca> Subject: Re: Filter yEnc postings Date: Thu, 26 Jan 2006 03:49:03 +0000 From: Sylvain Robitaille <syl@alcor.concordia.ca> References: <dr515q$3cc$1@bananasplit.info> <dr5351$a56$1@gondor.sdsu.edu> <dr54hm$6a3$1@bananasplit.info> <dr57mg$cj5$1@gondor.sdsu.edu> <dr5fsd$f5u$1@gondor.sdsu.edu> <dr5nlg$b03$1@wonderland.linux.it> 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!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newspeer.monmouth.com!nntp.abs.net!news2.wam.umd.edu!elk.ncren.net!newsflash.concordia.ca!not-for-mail Newsgroups: news.software.nntp Organization: Concordia University, Montreal, Canada Lines: 37 NNTP-Posting-Host: alcor.concordia.ca X-Trace: newsflash.concordia.ca 1138247343 17154 132.205.7.51 (26 Jan 2006 X-Complaints-To: abuse@concordia.ca NNTP-Posting-Date: Thu, 26 Jan 2006 03:49:03 +0000 (UTC) NNTP-Posting-User: syl User-Agent: slrn/0.9.7.4 (OSF1)