🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Matija Nalis Tue, 18 Nov 2008 12:23
several important Cleanfeed bugfixes (against lastest mixmin.net SVN revision 131)
#79669
Author: Matija Nalis
Date: Tue, 18 Nov 2008 12:23
69 lines
3772 bytes
Here are explanations of bugs (for each chunk)

(1) "binaries" are not necesserily second element in newsgroups name!
    This bug declares many binaries groups as non binaries !

    For example: bih.alt.mp3.binaries,  hr.misc.grafika.binaries,
    hr.rec.bicikli.binaries,  microsoft.public.pocketpc.binaries and 
    much more. 

    Use:
    egrep '\.binae?r' /var/lib/news/active | cut -f1 -d" " | \
    egrep -v '^[a-z]+\.binae?r'
    to find affected groups on your server.

(2) this bug ('|' at the front of the regexp!) declares ANY group as "meow"
    group (and not just named ones), leading to many false positives.

(3) this makes cleanfeed.local more robust - if you have '|' at the
    beggining or the end of some %config_append variable (eg. if you
    yourself make the same bug as in (2)), this will fix it for you
    automatically.

(4) this removes false positives for "freexp", see following post for details:
    http://groups.google.com/group/news.software.nntp/msg/1ebdb398c2202142

Index: cleanfeed
===================================================================
--- cleanfeed	(revision 131)
+++ cleanfeed	(working copy)
@@ -119,7 +119,7 @@
     debug_batch_size => 0,          # max size of batch files before rotation
 
     ### binaries allowed if groups match
-    bin_allowed => '^[a-z]+\.binae?r|^fur\.artwork'.
+    bin_allowed => '[a-z]+\.binae?r|^fur\.artwork'.
         '|^alt\.anonymous\.messages$|^de\.alt\.dateien|^rec\.games\.bolo$'.
         '|^comp\.security\.pgp\.test$|^sfnet\.tiedostot'.
         '|^fido\.|^linux\.|^unidata\.|alt\.security\.keydist',
@@ -163,7 +163,7 @@
     low_xpost_groups => 'test|jobs|forsale',
 
     ### groups where we restrict crossposts whith other groups
-    meow_groups => '|^alt\.fan\.karl-malden\.nose|^alt\.flame|^alt\.troll'.
+    meow_groups => '^alt\.fan\.karl-malden\.nose|^alt\.flame|^alt\.troll'.
         '|^alt\.alien\.vampire\.flonk\.flonk\.flonk|^alt\.romath'.
         '|^alt\.snuh|^alt\.fan\.natasha',
 
@@ -281,6 +281,8 @@
                     $config{$_} .= "|$config_append{$_}";
                     $config{$_} =~ s/\|\|/\|/g;
                 }
+                $config{$_} =~ s/^\|//;
+                $config{$_} =~ s/\|$//;
             }
             undef %config_append;
         }
@@ -348,7 +350,7 @@
 
 # for the scoring filter
 $sex = 'sex|xxx|fuck';
-$free = 'free(?!dom|bsd|ppp)';
+$free = 'free(?!dom|bsd|ppp|xp)';
 $pics = 'pi(?:c|x)';
 $drugs = 'carisoprodol|caverta|cialis|diazepam|kamagra|levitra|nizoral'.
          'sildenafil|tadalafil|valium|viagra|vicodin|xanax';

-- 
Opinions above are GNU-copylefted.
Re: several important Cleanfeed bugfixes (against lastest mixmin.net SVN revision 131)
#79673
Author: Steve
Date: Tue, 18 Nov 2008 21:18
42 lines
2561 bytes
On Tue, 18 Nov 2008 12:23:22 +0000 (UTC), Matija Nalis wrote in
Message-Id: <slrngi5d1m.8fd.mnalis-news@bukavac.carpriv.carnet.hr>:

>
> Here are explanations of bugs (for each chunk)
>
> (1) "binaries" are not necesserily second element in newsgroups name!
>     This bug declares many binaries groups as non binaries !
>
>     For example: bih.alt.mp3.binaries,  hr.misc.grafika.binaries,
>     hr.rec.bicikli.binaries,  microsoft.public.pocketpc.binaries and 
>     much more. 
>
>     Use:
>     egrep '\.binae?r' /var/lib/news/active | cut -f1 -d" " | \
>     egrep -v '^[a-z]+\.binae?r'
>     to find affected groups on your server.
>
> (2) this bug ('|' at the front of the regexp!) declares ANY group as "meow"
>     group (and not just named ones), leading to many false positives.
>
> (3) this makes cleanfeed.local more robust - if you have '|' at the
>     beggining or the end of some %config_append variable (eg. if you
>     yourself make the same bug as in (2)), this will fix it for you
>     automatically.
>
> (4) this removes false positives for "freexp", see following post for details:
>     http://groups.google.com/group/news.software.nntp/msg/1ebdb398c2202142

Hi Matija,

Many thanks for your updates and accurate descriptions of the bugs.
I've applied all four patches to the current svn trunk and will issue a
signed update shortly.

Regards
Steve

-- 
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: several important Cleanfeed bugfixes (against lastest mixmin.net SVN revision 131)
#79678
Author: D. Stussy
Date: Wed, 19 Nov 2008 01:41
88 lines
5350 bytes
"Matija Nalis" <mnalis-news@voyager.hr> wrote in message news:slrngi5d1m.8fd.mnalis-news@bukavac.carpriv.carnet.hr...
> Here are explanations of bugs (for each chunk)
>
> (1) "binaries" are not necesserily second element in newsgroups name!
>     This bug declares many binaries groups as non binaries !
>
>     For example: bih.alt.mp3.binaries,  hr.misc.grafika.binaries,
>     hr.rec.bicikli.binaries,  microsoft.public.pocketpc.binaries and
>     much more.
>
>     Use:
>     egrep '\.binae?r' /var/lib/news/active | cut -f1 -d" " | \
>     egrep -v '^[a-z]+\.binae?r'
>     to find affected groups on your server.

I first thought that '\.bin' may be sufficient - to match many spelling variations.  However, the BIND related groups (and others)
then get mis-identified, so let's rephrase that:  Any element "*.bin*" that is either terminal (nothing or a period follows) or is
followed by the first three vowels (A, E, or I -- to account for misspelled groups).

Also and although we don't have any that are active, let's add a "^bin\." (bin.*) hierarchy as recognized, in case someone starts
one.  I've always hated the "alt.binaries.*" thing as too long....  (saves 9 bytes for every instance of the group name, which is at
least twice ["Newsgroups:" and "X-Trace:" headers] per post).  OK, so hard drive space is cheap, but the savings across a million
messages (of 256k in size => ~68) could be a few extra minutes of retention.

> (2) this bug ('|' at the front of the regexp!) declares ANY group as "meow"
>     group (and not just named ones), leading to many false positives.
>
> (3) this makes cleanfeed.local more robust - if you have '|' at the
>     beggining or the end of some %config_append variable (eg. if you
>     yourself make the same bug as in (2)), this will fix it for you
>     automatically.
>
> (4) this removes false positives for "freexp", see following post for details:
>     http://groups.google.com/group/news.software.nntp/msg/1ebdb398c2202142
>
> Index: cleanfeed
> ===================================================================
> --- cleanfeed (revision 131)
> +++ cleanfeed (working copy)
> @@ -119,7 +119,7 @@
>      debug_batch_size => 0,          # max size of batch files before rotation
>
>      ### binaries allowed if groups match
> -    bin_allowed => '^[a-z]+\.binae?r|^fur\.artwork'.
> +    bin_allowed => '[a-z]+\.binae?r|^fur\.artwork'.   - NO!

Try:
+  bin_allowed => '^bin\.|\.bin[aei.]|\.bin$|^fur\.artwork'.

1)  Adds "bin.*" hierarchy - in case it's ever active, just so we don't have to update again.
2)  Allows "*.bin*" to appear ANYWHERE in the string, not just in the second hierarchial element.
3)  As originally written, required first element to be alphabetic only.  Only the first CHARACTER is required to be alphabetic.

>          '|^alt\.anonymous\.messages$|^de\.alt\.dateien|^rec\.games\.bolo$'.
>          '|^comp\.security\.pgp\.test$|^sfnet\.tiedostot'.
>          '|^fido\.|^linux\.|^unidata\.|alt\.security\.keydist',
> @@ -163,7 +163,7 @@
>      low_xpost_groups => 'test|jobs|forsale',
>
>      ### groups where we restrict crossposts whith other groups
> -    meow_groups => '|^alt\.fan\.karl-malden\.nose|^alt\.flame|^alt\.troll'.
> +    meow_groups => '^alt\.fan\.karl-malden\.nose|^alt\.flame|^alt\.troll'.
>          '|^alt\.alien\.vampire\.flonk\.flonk\.flonk|^alt\.romath'.
>          '|^alt\.snuh|^alt\.fan\.natasha',
>
> @@ -281,6 +281,8 @@
>                      $config{$_} .= "|$config_append{$_}";
>                      $config{$_} =~ s/\|\|/\|/g;
>                  }
> +                $config{$_} =~ s/^\|//;
> +                $config{$_} =~ s/\|$//;
>              }
>              undef %config_append;
>          }
> @@ -348,7 +350,7 @@
>
>  # for the scoring filter
>  $sex = 'sex|xxx|fuck';
> -$free = 'free(?!dom|bsd|ppp)';
> +$free = 'free(?!dom|bsd|ppp|xp)';
>  $pics = 'pi(?:c|x)';
>  $drugs = 'carisoprodol|caverta|cialis|diazepam|kamagra|levitra|nizoral'.
>           'sildenafil|tadalafil|valium|viagra|vicodin|xanax';
>
> -- 
> Opinions above are GNU-copylefted.

Amended reply - Re: several important Cleanfeed bugfixes (against lastest mixmin.net SVN revision 131)
#79680
Author: D. Stussy
Date: Wed, 19 Nov 2008 07:55
11 lines
1519 bytes
"D. Stussy" <spam@bde-arc.ampr.org> wrote in message news:gfvqsv$94g$1@snarked.org...
> Try:
> +  bin_allowed => '^bin\.|\.bin[aei.]|\.bin$|^fur\.artwork'.

Make that:

+  bin_allowed => '^bin[a.]|\.bin[aei.]|\.bin$|^fur\.artwork'.

I saw an instance of a "binaries.*" group (without a leading "alt.") in use.

Re: several important Cleanfeed bugfixes (against lastest mixmin.net SVN revision 131)
#79683
Author: Francois Petillon
Date: Wed, 19 Nov 2008 09:51
18 lines
1755 bytes
On Tue, 18 Nov 2008 12:23:22 +0000, Matija Nalis wrote:
> (4) this removes false positives for "freexp", see following post for details:
>     http://groups.google.com/group/news.software.nntp/msg/1ebdb398c2202142

I would advocate to exclude free.fr domain too... :-)

> @@ -348,7 +350,7 @@
>  
>  # for the scoring filter
>  $sex = 'sex|xxx|fuck';
> -$free = 'free(?!dom|bsd|ppp)';
> +$free = 'free(?!dom|bsd|ppp|xp|\.fr)';
>  $pics = 'pi(?:c|x)';
>  $drugs = 'carisoprodol|caverta|cialis|diazepam|kamagra|levitra|nizoral'.
>           'sildenafil|tadalafil|valium|viagra|vicodin|xanax';
>

François
Re: several important Cleanfeed bugfixes (against lastest mixmin.net SVN revision 131)
#79684
Author: Steve
Date: Wed, 19 Nov 2008 10:05
22 lines
1920 bytes
On Tue, 18 Nov 2008 17:41:50 -0800, D. Stussy wrote in
Message-Id: <gfvqsv$94g$1@snarked.org>:

> Also and although we don't have any that are active, let's add a
> "^bin\." (bin.*) hierarchy as recognized, in case someone starts one.

Thanks, I've updated bin_allowed with your revised regex.

Just out of interest, is there any reason why a bin hierarchy has never
happened?  It would seem like a neat solution to the proliferation of
silly sub-hierarchies that cause text-only services such a headache.
Updates to Cleanfeed combined with an INN fix by Julien have hopefully
reduced propagation of misplaced binaries, but many of the big news
services seem to still feed them.

Perhaps a hierarchy of mime.* would be better than a bin.* one.  Or is
that just wishful thinking? :)

-- 
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: several important Cleanfeed bugfixes (against lastest mixmin.net SVN revision 131)
#79686
Author: Julien ÉLIE
Date: Wed, 19 Nov 2008 10:14
15 lines
1968 bytes
Hi Steve,

> Updates to Cleanfeed combined with an INN fix by Julien have hopefully
> reduced propagation of misplaced binaries, but many of the big news
> services seem to still feed them.

People do not update Cleanfeed and INN as soon as there is a bug-fix
and big news services do not necessarily use either Cleanfeed or INN.
It might take a long time before not receiving misplaced binaries...

-- 
Julien ÉLIE

« On me tape dessus à tout bout de chant... » (Astérix) 
Re: several important Cleanfeed bugfixes (against lastest mixmin.net SVN revision 131)
#79688
Author: Julien ÉLIE
Date: Wed, 19 Nov 2008 10:23
24 lines
2089 bytes
Hi François,

> I would advocate to exclude free.fr domain too... :-)

You make me think about (the old ISP) freesbee.fr and, after some search,
I saw that it was bought out by Liberty Surf, itself bought out by Tiscali,
itself bought out by Alice... itself bought out by Free :-)


>> -$free = 'free(?!dom|bsd|ppp)';
>> +$free = 'free(?!dom|bsd|ppp|xp|\.fr)';

There are lots of common names like "freelance", "freestyle", "freeware",
"freeway", adjectives like "fat-free" or verbs like "to freeze" which are
caught by this filter.

Cleanfeed does not like bug-free software :)

-- 
Julien ÉLIE

« Quae longo tempore extenuentur corpora,
  lente reficere oportet. » (Hippocrate) 
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