Article View: news.software.nntp
Article #87986Re: Cleanfeed bad_body woes
From: Retro Guy
Date: Thu, 11 Jul 2019 08:29
Date: Thu, 11 Jul 2019 08:29
41 lines
2097 bytes
2097 bytes
On Wed, 10 Jul 2019 17:26:44 -0600
Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> Hi,
>
> I need some help with cleanfeed (337) not filtering (blocking
> messages) out some body content.
>
> ...
>
> I did some sleuthing and it seems as if Bad_Body(_RE) is only tested
> if there is not a References: header, which the messages I'm trying
> to filter do have. (I think it's a bogus References: header, likely
> meant to bypass cleanfeed.)
>
> Does anybody know if this is in fact the case? Does a References:
> header avoid bad_body checks?
Looking in filter_innd.pl:
# Check payload against bad_body and bad_url files.
if (not $gr{reports} and not $hdr{References}) {
return reject("Body ($1)", 'Bad Body')
if $Bad_Body and $body =~ $Bad_Body_RE;
};
so it looks like if there is a References header, bad_body won't be
checked.
I do body checks in cleanfeed.local in 'sub local_filter_last' and it's
working well for me. (checking $hdr{__BODY__}) Maybe that's not the
right way or place to do it, but it does work.
Retro Guy
--
Posted via novabbs
Technical Details
Message-ID:
<20190711012957.46e76b50@desktop14.dt>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<qg5s8m$cvi$1@tncsrv09.home.tnetconsulting.net>Show Full Headers
Complete Article Headers
Message-ID: <20190711012957.46e76b50@desktop14.dt> Subject: Re: Cleanfeed bad_body woes Date: Thu, 11 Jul 2019 01:29:57 -0700 From: Retro Guy <retro_guy@retrobbs.rocksolidbbs.com> References: <qg5s8m$cvi$1@tncsrv09.home.tnetconsulting.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.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: novabbs Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: novabbs.com; posting-account="retro2"; posting-host="ip68-2-45-86.ph.ph.cox.net:68.2.45.86"; logging-data="16653"; mail-complaints-to="usenet@novabbs.com" X-Newsreader: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-Received-Bytes: 1972 X-Received-Body-CRC: 3052430696