πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Son of Serpent Esq Tue, 06 Jan 2009 21:08
Cleanfeed => block_binaries
#79994
Author: Son of Serpent Esq
Date: Tue, 06 Jan 2009 21:08
9 lines
1042 bytes
I can not get the block_binaries filter to work.

Cleanfeed is rejecting HTML but not binaries.

-- 
INN 2.4.4
perl v5.10.0
cleanfeed 159 2008-12-24
Re: Cleanfeed => block_binaries
#79986
Author: Steve
Date: Tue, 06 Jan 2009 21:16
25 lines
1641 bytes
On Tue, 6 Jan 2009 21:08:38 +0000 (UTC), Son of Serpent Esq wrote in
Message-Id: <slrngm7i2m.7qf.junior@tioat.net>:

> I can not get the block_binaries filter to work.
Have you got any logging of binary rejects?  Doing so will make it
easier to diagnose what the problem might be.

If not, try adding something like this in cleanfeed.local:-

sub local_filter_reject {
...
    saveart('cf.binary', $vr) if $vr =~ /^Binary/;
...
};

Where the ... indicates anything else you might have defined within the
local_filter_reject function.

Do a "perl -wc cleanfeed.local" to ensure there's no syntax errors, then
reload the filter with "ctlinnd reload filter.perl bin logging".

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Re: Cleanfeed => block_binaries
#79987
Author: Son of Serpent Esq
Date: Tue, 06 Jan 2009 22:04
37 lines
2336 bytes
Steve wrote:
> On Tue, 6 Jan 2009 21:08:38 +0000 (UTC), Son of Serpent Esq wrote in
> Message-Id: <slrngm7i2m.7qf.junior@tioat.net>:
>
>> I can not get the block_binaries filter to work.
> Have you got any logging of binary rejects?  Doing so will make it
> easier to diagnose what the problem might be.
>
> If not, try adding something like this in cleanfeed.local:-
>
> sub local_filter_reject {
> ...
>     saveart('cf.binary', $vr) if $vr =~ /^Binary/;
> ...
> };
>
> Where the ... indicates anything else you might have defined within the
> local_filter_reject function.

That line is already there in cleanfeed.local.

> Do a "perl -wc cleanfeed.local" to ensure there's no syntax errors, then
> reload the filter with "ctlinnd reload filter.perl bin logging".

Never noticed cf.binary in the logs. There is cf.scoring, emp.ph1,
emp.md5 etc. For a test, I just tried setting "return 1;" in the 
"sub is_binary" routine and it did start rejecting with
"Binary: misplaced" and created "cf.scoring" before I could flip the
return setting back to 0 and reload. Boy that was dumb. ;)

Yes, I do the syntax check every time I make a change to any of those
perl files. It's really odd that everything seems to work fine
except rejecting binaries.

I don't mind experimenting with the settings here so let me know if
you want me to try anything else.
Re: Cleanfeed => block_binaries
#79988
Author: Son of Serpent Esq
Date: Tue, 06 Jan 2009 22:17
33 lines
2237 bytes
Son of Serpent Esq wrote:
> Steve wrote:
>> On Tue, 6 Jan 2009 21:08:38 +0000 (UTC), Son of Serpent Esq wrote in
>> Message-Id: <slrngm7i2m.7qf.junior@tioat.net>:
>>
>>> I can not get the block_binaries filter to work.
>> Have you got any logging of binary rejects?  Doing so will make it
>> easier to diagnose what the problem might be.
>>
>> If not, try adding something like this in cleanfeed.local:-
>>
>> sub local_filter_reject {
>> ...
>>     saveart('cf.binary', $vr) if $vr =~ /^Binary/;
>> ...
>> };
>>
>> Where the ... indicates anything else you might have defined within the
>> local_filter_reject function.
>
> That line is already there in cleanfeed.local.
>
>> Do a "perl -wc cleanfeed.local" to ensure there's no syntax errors, then
>> reload the filter with "ctlinnd reload filter.perl bin logging".
>
> Never noticed cf.binary in the logs. There is cf.scoring, emp.ph1,
> emp.md5 etc. For a test, I just tried setting "return 1;" in the 
> "sub is_binary" routine and it did start rejecting with
> "Binary: misplaced" and created "cf.scoring" before I could flip the
> return setting back to 0 and reload. Boy that was dumb. ;)

Meant to say it created the "cf.binary" log file there.
Re: Cleanfeed => block_binaries
#79989
Author: Steve
Date: Tue, 06 Jan 2009 22:20
15 lines
1746 bytes
On Tue, 6 Jan 2009 22:04:59 +0000 (UTC), Son of Serpent Esq wrote in
Message-Id: <slrngm7lcb.8j4.junior@tioat.net>:

> Yes, I do the syntax check every time I make a change to any of those
> perl files. It's really odd that everything seems to work fine
> except rejecting binaries.
Ah, I bet the issue is INN rather than Cleanfeed.  Julien Γ‰lie fixed a
bug where INN was not creating $hdr{__BODY__} correctly, this caused
regexs matching newlines to fail.  I'm not sure which version of
Cleanfeed incorporated the fix but it was around August 2008.

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
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