Thread View: news.software.nntp
7 messages
7 total messages
Started by admin
Fri, 03 Apr 2020 13:15
Cleanfeed question
Author: admin
Date: Fri, 03 Apr 2020 13:15
Date: Fri, 03 Apr 2020 13:15
11 lines
1075 bytes
1075 bytes
Hello! Cleanfeed body check is conditional, depending message *not* having References: https://github.com/crooks/cleanfeed/blob/master/cleanfeed#L1227 Looking into history it seems to be this way long time, possibly import from cleanfeed.local. Can anyone give idea, why this exception was made? Best regards U.ee
Re: Cleanfeed question
Author: Retro Guy Retro Guy
Date: Fri, 03 Apr 2020 22:50
Date: Fri, 03 Apr 2020 22:50
56 lines
3157 bytes
3157 bytes
admin@invalid.usenet.ee wrote:
> Hello!
> Cleanfeed body check is conditional, depending message *not* having
> References: https://github.com/crooks/cleanfeed/blob/master/cleanfeed#L1227
> Looking into history it seems to be this way long time, possibly import
> from cleanfeed.local.
> Can anyone give idea, why this exception was made?
This was asked a few months ago, here's the comments from that thread. (credit to steve@mixmin.net)
On Thu, 11 Jul 2019 01:29:57 -0700, Retro Guy wrote in
Message-Id: <20190711012957.46e76b50@desktop14.dt>:
> 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.
Yes, that's correct. There is no clear-cut answer to whitelisting
messages with References: Without the References check, it's likely
that a large chunk of a thread will be filtered out because it quotes
the content that triggered the filter. With the References check, it's
easy for a malicious poster to circumvent the check just by adding a
bogus References header.
> 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.
This is probably the best way to enforce local policies.
Re: Cleanfeed question
Author: Grant Taylor
Date: Sat, 04 Apr 2020 04:24
Date: Sat, 04 Apr 2020 04:24
21 lines
1418 bytes
1418 bytes
On 4/3/20 7:15 AM, admin@invalid.usenet.ee wrote: > Hello! Hi, > Cleanfeed body check is conditional, > depending message *not* having References: Yep. I ran into this myself within the last year. > Can anyone give idea, why this exception was made? I have no idea. Thankfully, the volume of the spam subsided and I quit pursuing the issue. -- Grant. . . . unix || die
Re: Cleanfeed question
Author: admin
Date: Sat, 04 Apr 2020 08:44
Date: Sat, 04 Apr 2020 08:44
21 lines
1399 bytes
1399 bytes
On 04.04.20 01:50, Retro Guy wrote: > admin@invalid.usenet.ee wrote: > >> Hello! > >> Cleanfeed body check is conditional, depending message *not* having >> References: >> https://github.com/crooks/cleanfeed/blob/master/cleanfeed#L1227 >> Looking into history it seems to be this way long time, possibly >> import from cleanfeed.local. > >> Can anyone give idea, why this exception was made? > > This was asked a few months ago, here's the comments from that thread. > (credit to steve@mixmin.net) > Thank You! That was detailed asnwer! Best regards U.ee
Re: Cleanfeed question
Author: admin
Date: Sat, 04 Apr 2020 08:53
Date: Sat, 04 Apr 2020 08:53
32 lines
1722 bytes
1722 bytes
On 04.04.20 07:24, Grant Taylor wrote: > On 4/3/20 7:15 AM, admin@invalid.usenet.ee wrote: >> Hello! > > Hi, > >> Cleanfeed body check is conditional, depending message *not* having >> References: > > Yep. I ran into this myself within the last year. > >> Can anyone give idea, why this exception was made? > > I have no idea. > > Thankfully, the volume of the spam subsided and I quit pursuing the issue. > > > I still see annoying noise in some groups. Those groups (not pointing fingers, but I have specific group in mind) contain mostly "spammy" replies for "spammy" posts. Not advertising spam, so I put "spammy" on quotes, but I see that as unwanted and not relevant for those groups. I think I remove that check from my cleanfeed. I really don't see situation, where reply to spam is valuable. Best regards U.ee
Re: Cleanfeed question
Author: Steve Crook
Date: Sat, 04 Apr 2020 10:35
Date: Sat, 04 Apr 2020 10:35
34 lines
1804 bytes
1804 bytes
On Sat, 4 Apr 2020 11:44:02 +0300, admin@invalid.usenet.ee wrote in Message-Id: <r69hch$2oad$1@news.usenet.ee>: > On 04.04.20 01:50, Retro Guy wrote: >> admin@invalid.usenet.ee wrote: >> >>> Hello! >> >>> Cleanfeed body check is conditional, depending message *not* having >>> References: >>> https://github.com/crooks/cleanfeed/blob/master/cleanfeed#L1227 >>> Looking into history it seems to be this way long time, possibly >>> import from cleanfeed.local. >> >>> Can anyone give idea, why this exception was made? >> >> This was asked a few months ago, here's the comments from that thread. >> (credit to steve@mixmin.net) >> > > Thank You! That was detailed asnwer! Hi, You might also want to check out PyClean. It has received considerably more attention over the previous decade or so. It's based on Cleanfeed but adds some useful features. https://github.com/crooks/PyClean -- What shall we use To fill the empty spaces Where we used to talk?
Re: Cleanfeed question
Author: admin
Date: Sat, 04 Apr 2020 13:18
Date: Sat, 04 Apr 2020 13:18
18 lines
1395 bytes
1395 bytes
Hello, On 04.04.20 13:35, Steve Crook wrote: > Hi, > > You might also want to check out PyClean. It has received considerably > more attention over the previous decade or so. It's based on Cleanfeed > but adds some useful features. > > https://github.com/crooks/PyClean > Thanks for that suggestion! You have mentioned Pyclean before, but I am little bit fond of cleanfeed, it has been good motivation to fresh my Perl knowledge. Best wishes U.ee
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads