🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79678

Re: several important Cleanfeed bugfixes (against lastest mixmin.net SVN revision 131)

#79678
From: 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.

Technical Details
Message-ID: <gfvqsv$94g$1@snarked.org>
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!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail
References: <slrngi5d1m.8fd.mnalis-news@bukavac.carpriv.carnet.hr>

Show Full Headers
Complete Article Headers
Message-ID: <gfvqsv$94g$1@snarked.org>
Subject: Re: several important Cleanfeed bugfixes (against lastest mixmin.net SVN revision 131)
Date: Tue, 18 Nov 2008 17:41:50 -0800
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <slrngi5d1m.8fd.mnalis-news@bukavac.carpriv.carnet.hr>
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!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 88
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-116-244-151.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1227058911 9360 71.116.244.151 (19 Nov 2008 01:41:51 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Wed, 19 Nov 2008 01:41:51 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478