Thread View: news.software.nntp
12 messages
12 total messages
Started by Steve Crook
Sun, 03 Jan 2010 21:26
Cleanfeed Update
Author: Steve Crook
Date: Sun, 03 Jan 2010 21:26
Date: Sun, 03 Jan 2010 21:26
69 lines
3315 bytes
3315 bytes
Hi all, Following the release of INN-2.5.1, I've produced a Cleanfeed update to address the new Injection-Info header and the depreciation of the Lines header. This release also makes various modifications detailed in the changelog. Most notably:- Misplaced uuEnc/yEnc encoded binaries are rejected, regardless of how many encoded lines they contain. Posting-Host info is extracted from Injection-Info if available. Filters based on the Lines header have been removed. Base64 encoded articles are decoded prior to filter processing. The individual Cleanfeed file can be downloaded from: http://www.mixmin.net/cleanfeed/cleanfeed http://www.mixmin.net/cleanfeed/cleanfeed.asc (PGP Detached Signature) A complete tarball for new installations is at: http://www.mixmin.net/cleanfeed/cleanfeed.tar.gz A diff against the last formal release (20020501): http://www.mixmin.net/cleanfeed/cleanfeed.diff Changelog --------- * block_all_binaries option Reject binary postings regardless of distribution. See http://www.mixmin.net/cfdev/config.html#block_all_binaries for more info. * off-topic filters have been extended to support on-topic maxgroups. See: http://www.mixmin.net/cfdev/config.html#off_topic1_maxgroups http://www.mixmin.net/cfdev/config.html#off_topic2_maxgroups * Misplaced uuEnc/yEnc binaries are now rejected, regardless of how many encoded lines they contain. Consequently, the max_encoded_lines config option no longer exists. * HTML filtering is simplified into just two parameters: block_mime_html - Reject MIME encoded HTML block_html - Block native HTML (Content-Type: text/html) * Base64 encoded postings are now decoded before being processed by the scoring filters. (This requires MIME::Base64) * Posting-Host is now obtained from Injection-Info if available in preference to NNTP-Posting-Host. * Articles are checked for malformed lines. /[^\r]\n/ A count of matching lines is stored in $badlines and used to weight scoring filters. * All filters based on the Lines header have been removed. * Base64 encoded lines are now accurately counted. * A logart function has been added. This function is intended to replace saveart in the future but currently both are available. In summary, logart provides more granular control of what gets logged. (Very useful for Cleanfeed debugging!). This isn't well documented yet, please review the code prior to using it. * Cleanfeed's version string is included in stats files.
Re: Cleanfeed Update
Author: Steve Crook
Date: Mon, 04 Jan 2010 11:48
Date: Mon, 04 Jan 2010 11:48
19 lines
1788 bytes
1788 bytes
On Sun, 3 Jan 2010 21:26:09 +0000 (UTC), Steve Crook wrote in Message-Id: <slrnhk22rh.erp.steve@news.mixmin.net>: > A complete tarball for new installations is at: > http://www.mixmin.net/cleanfeed/cleanfeed.tar.gz Apologies, due to an error in my release script this didn't get updated yesterday. Thanks to Julien Élie for letting me know. There are also a couple of small bugfixes based on Julien's feedback. The NNTP-Posting-Host header was being used in the Posting-Host / Lines EMP filter instead of $postinghost which is extracted from Injection-Info if present and falls back on NNTP-Posting-Host if it's not. A spamcancel filter was using the X-Trace header which will soon be depreciated in favour of the Injection-Info header. A new variable $postingservice attempts to ascertain this info first from Injection-Info and then from X-Trace.
Re: Cleanfeed Update
Author: D. Stussy
Date: Mon, 04 Jan 2010 21:21
Date: Mon, 04 Jan 2010 21:21
25 lines
2247 bytes
2247 bytes
"Steve Crook" <steve@mixmin.net> wrote in message news:slrnhk3lcs.erp.steve@news.mixmin.net... > On Sun, 3 Jan 2010 21:26:09 +0000 (UTC), Steve Crook wrote in > Message-Id: <slrnhk22rh.erp.steve@news.mixmin.net>: > > > A complete tarball for new installations is at: > > http://www.mixmin.net/cleanfeed/cleanfeed.tar.gz > Apologies, due to an error in my release script this didn't get updated > yesterday. Thanks to Julien Élie for letting me know. > > There are also a couple of small bugfixes based on Julien's feedback. > ... I've noticed that version 306 (2010-01-04 10:48:45Z) still has some regex expressions that have things like "[Cc]" in them. Is this more efficient than using the "i" flag on the actual comparison (to make the comparison case insensitive)? Avoiding the case-alternative matching in favor of case insensitive comparsions would make the program easier to read by a human. "poison_groups": For the "hipcrime" group names, I found "h[0-9a-z]pc[lr][0-9a-z][mn]e" to be all encompassing and perhaps more efficient as a single entry, evein if it does include combinations that weren't actually used.
Re: Cleanfeed Update 306 (additional comments)
Author: D. Stussy
Date: Tue, 05 Jan 2010 00:14
Date: Tue, 05 Jan 2010 00:14
133 lines
7307 bytes
7307 bytes
Just to establish the baseline:
--- cleanfeed.txt 2009-10-13 12:23:08.000000000 +0000
+++ cleanfeed.txt 2010-01-04 22:26:12.000000000 +0000
@@ -5,7 +5,7 @@
#
# Modified by Steve Crook <steve@mixmin.net>
# Redistributed in accordance with the terms of the Artistic license.
-# $Id: cleanfeed 271 2009-10-13 12:23:08Z cleanfeed $
+# $Id: cleanfeed 306 2010-01-04 10:48:45Z cleanfeed $
#
# This software is distributed under the terms of the Artistic License.
# Please see the LICENSE file in the distribution.
Although you're using some sort of auto-versioning software, shouldn't the
version number and date variables logically be closer to the top of the
file? There's no harm leaving it embedded in the middle, and we do have
the text version in the comments at the header, but it just seems out of
place to be buried in the middle.
@@ -254,6 +256,10 @@
);
+ # Store the Cleanfeed development revision number
+ ($version) = q$Revision: 306 $ =~ /(\d+)/;
+ ($version_date) = q$Date: 2010-01-04 10:48:45 +0000 (Mon, 04 Jan 2010)
$ =~ /(\d{4}(\-\d{2}){2})/;
+
### List of group patterns that don't allow outside crossposts.
### Key is "friendly" name, value is the pattern.
%Restricted_Groups = (
OK, so we removed the "off_topic_maxgroups" variable, but shouldn't we add
"off_topic1_maxgroups" and the other 5 like variables (on_topic min/max)
here?
@@ -300,7 +306,7 @@
refuse_messageids net_abuse_groups spam_report_groups
adult_groups not_adult_groups faq_groups ratio_exclude
image_allowed image_extensions meow_groups
- topic1_groups topic2_groups off_topic_maxgroups)) {
+ topic1_groups topic2_groups)) {
if (defined $config_append{$_}) {
$config{$_} .= "|$config_append{$_}";
$config{$_} =~ s/\|\|/\|/g;
SEVEN regex comparisons across 3 diff-sections, but no "i" flag to make
them case insensitive? We may know what's in the variables, but we don't
know whether "Injection-Info" or "NNTP-Posting-Host" will be all lowercase.
Did we ever "tolower($postinghost)" globally? The last added line of the
3rd patch of this section implies not. I note that at line
1589(old)/1615(new), you did catch that the message-ID comparison is now
case insensitive. ;-)
@@ -994,25 +1031,25 @@
if (not $gr{reports}) {
# create posting-host/lines hash
if ($config{do_phl} and not $gr{allmod}
- and $hdr{'NNTP-Posting-Host'} and not $gr{phlskip}$postinghost
+ and $postinghost and not $gr{phlskip}
and not is_binary() and not $gr{alltest}
- and not $hdr{'NNTP-Posting-Host'} =~
/(?:$config{phl_exempt})/o
- and not $hdr{'$NNTP-Posting-Host'} =~
/(?:$config{bad_nph_hosts})/o
+ and not $postinghost =~ /(?:$config{phl_exempt})/o
+ and not $postinghost =~ /(?:$config{bad_nph_hosts})/o
and not ($gr{binary} and $lines > 100
and $hdr{Subject} =~ /[\(\[]\d+\/\d+[\)\]]/)) {
return reject('EMP (phl)', 'EMP')
- if $PHLhistory->add("$hdr{'NNTP-Posting-Host'}
$lines");
+ if $PHLhistory->add("$postinghost $lines");
}; # End of PHL filter
# create posting-host/newsgroups hash
- if ($config{do_phn} and not $gr{allmod}
- and not $gr{phrinc} and not $gr{phnskip} and not $gr{alltest}
+ if ($config{do_phn} and not $gr{phrinc} and not $gr{phnskip}
+ and not $gr{alltest} and not $gr{allmod}
and not ($gr{binary} and $lines > 100)) {
- if ($hdr{'NNTP-Posting-Host'}
- and not $hdr{'$NNTP-Posting-Host'} =~
/(?:$config{bad_nph_hosts})/o) {
- if (not $hdr{'NNTP-Posting-Host'} =~
/(?:$config{phn_exempt})/o) {
+ if ($postinghost
+ and not $postinghost =~ /(?:$config{bad_nph_hosts})/o) {
+ if (not $postinghost =~ /(?:$config{phn_exempt})/o) {
return reject('EMP (phn nph)', 'EMP')
- if $PHNhistory->add("$hdr{'NNTP-Posting-Host'}
$sortgrps");
+ if $PHNhistory->add("$postinghost $sortgrps");
};
} elsif ($config{phn_aggressive}) {
my $server;
@@ -1050,11 +1087,11 @@
# create high-risk newsgroups hash
if ($config{do_phr} and $gr{phrinc}
and not ($gr{binary} and $lines > 100)) {
- if ($hdr{'NNTP-Posting-Host'}
- and not $hdr{'NNTP-Posting-Host'} =~
/(?:$config{bad_nph_hosts})/o) {
- if (not $hdr{'NNTP-Posting-Host'} =~
/(?:$config{phr_exempt})/o) {
+ if ($postinghost
+ and not $postinghost =~ /(?:$config{bad_nph_hosts})/o) {
+ if (not $postinghost =~ /(?:$config{phr_exempt})/o) {
return reject('EMP (phr nph)', 'EMP')
- if $PHRhistory->add("$hdr{'NNTP-Posting-Host'}");
+ if $PHRhistory->add("$postinghost");
}
} elsif ($config{phr_aggressive}) {
my $server;
@@ -1079,12 +1116,10 @@
}
if ($config{do_supersedes_filter} and $hdr{Supersedes}
- and not
$hdr{'NNTP-Posting-Host'}=~/$config{supersedes_exempt}/o) {
+ and not $postinghost =~ /$config{supersedes_exempt}/o) {
my $source;
- if ($hdr{'NNTP-Posting-Host'} =~ /^(\d+\.\d+.\d+)\.\d+/) {
- $source = $1;
- } elsif ($hdr{'NNTP-Posting-Host'}) {
- $source = lc $hdr{'NNTP-Posting-Host'};
+ if ($postinghost) {
+ $source = lc $postinghost;
$source =~ tr/a-z.//cd;
}
Re: Cleanfeed Update 306 (diff vs. news.snarked.org updated version)
Author: D. Stussy
Date: Tue, 05 Jan 2010 00:50
Date: Tue, 05 Jan 2010 00:50
182 lines
9301 bytes
9301 bytes
--- cleanfeed.306 2010-01-04 22:26:12.000000000 +0000
+++ cleanfeed.txt 2010-01-05 00:43:32.000000000 +0000
@@ -89,6 +89,7 @@
low_xpost_maxgroups => 6, # max xposts in low_xpost_groups
meow_ext_maxgroups => 2, # max xposts from meow_groups to other
groups
+ politics_ext_maxgroups => 2,# max xposts from politics_groups to other
groups
off_topic1_maxgroups => 2, # How many off topic groups allowed in a
distro
on_topic1_maxgroups => 5, # How many on-topic groups allowed in a
distro
on_topic1_mingroups => 2, # How many on-topic groups req'd to
trigger
@@ -175,6 +176,7 @@
meow_groups => '^alt\.fan\.karl-malden\.nose|^alt\.flame|^alt\.troll'.
'|^alt\.alien\.vampire\.flonk\.flonk\.flonk|^alt\.romath'.
'|^alt\.snuh|^alt\.fan\.natasha',
+ politics_groups => '\.politi[ck]',
### Topic groups allow administrators to limit crossposting from
defined
### groups to undefined groups. The allowed number of groups is
defined
@@ -304,9 +306,11 @@
phl_exempt phl_exclude supersedes_exempt bad_nph_hosts
phn_exempt phr_exempt phn_exclude flood_groups
refuse_messageids net_abuse_groups spam_report_groups
- adult_groups not_adult_groups faq_groups ratio_exclude
- image_allowed image_extensions meow_groups
- topic1_groups topic2_groups)) {
+ adult_groups not_adult_groups faq_groups
politics_groups
+ image_allowed image_extensions meow_groups
ratio_exclude
+ topic1_groups on_topic1_mingroups on_topic1_maxgroups
+ topic2_groups on_topic2_mingroups on_topic2_maxgroups
+ off_topic1_maxgroups off_topic2_maxgroups)) {
if (defined $config_append{$_}) {
$config{$_} .= "|$config_append{$_}";
$config{$_} =~ s/\|\|/\|/g;
@@ -660,6 +664,8 @@
and /$config{low_xpost_groups}/o;
$gr{meow}++ if $config{meow_groups}
and /$config{meow_groups}/o;
+ $gr{politics}++ if $config{politics_groups}
+ and /$config{politics_groups}/o;
$gr{topic1}++ if $config{topic1_groups}
and /$config{topic1_groups}/o;
$gr{topic2}++ if $config{topic2_groups}
@@ -700,13 +706,13 @@
};
# checks common to all article types
#####################################
- return reject("Bad host ($postinghost)", 'Bad site')
+ return reject("Host ($postinghost)", 'Bad site')
if exists $Bad_Hosts{$postinghost}
or exists $Bad_Hosts_Central{$postinghost};
@Path_Entries = split(/!/, $hdr{Path});
foreach (@Path_Entries) {
- return reject("Bad path ($_)", 'Bad site') if exists
$Bad_Path{$_};
+ return reject("Path ($_)", 'Bad site') if exists $Bad_Path{$_};
}
# check for the most simple newsagent variations
@@ -785,7 +791,7 @@
# basic checks on headers
############################################
if ($gr{adult}) {
foreach (@Path_Entries) {
- return reject("Bad path ($_)", 'Bad site')
+ return reject("Path ($_)", 'Bad Path')
if exists $Bad_Adult_Path{$_};
}
}
@@ -795,7 +801,7 @@
# scoring element rather than a reject.
#%seen = {};
#@Path_Entries2 = grep {!$seen{$_}++ } @Path_Entries;
- #return reject('Duplicated Path entry', 'Bad Path')
+ #return reject('Duplicated Path Entry', 'Bad Path')
# if (scalar @Path_Entries) != (scalar @Path_Entries2);
return reject('U2 violation - invalid distribution', 'U2
violation')
@@ -820,9 +826,14 @@
return reject('Too many newsgroups (meow)', 'Too many newsgroups')
if $gr{meow}
and $config{meow_ext_maxgroups}
and ($fupcnt - $gr{meow}) > $config{meow_ext_maxgroups};
+ return reject('Too many newsgroups (politics)', 'Too many
newsgroups')
+ if $gr{politics}
+ and $config{politics_ext_maxgroups}
+ and ($fupcnt - $gr{politics}) >
$config{politics_ext_maxgroups};
+
return reject('Topic Filter (Off-Topic1)', 'Topic Filter')
if $gr{topic1}
and $gr{topic1} >= $config{on_topic1_mingroups}
@@ -1033,8 +1043,8 @@
if ($config{do_phl} and not $gr{allmod}
and $postinghost and not $gr{phlskip}
and not is_binary() and not $gr{alltest}
- and not $postinghost =~ /(?:$config{phl_exempt})/o
- and not $postinghost =~ /(?:$config{bad_nph_hosts})/o
+ and not $postinghost =~ /(?:$config{phl_exempt})/io
+ and not $postinghost =~ /(?:$config{bad_nph_hosts})/io
and not ($gr{binary} and $lines > 100
and $hdr{Subject} =~ /[\(\[]\d+\/\d+[\)\]]/)) {
return reject('EMP (phl)', 'EMP')
@@ -1046,8 +1056,8 @@
and not $gr{alltest} and not $gr{allmod}
and not ($gr{binary} and $lines > 100)) {
if ($postinghost
- and not $postinghost =~ /(?:$config{bad_nph_hosts})/o) {
- if (not $postinghost =~ /(?:$config{phn_exempt})/o) {
+ and not $postinghost =~ /(?:$config{bad_nph_hosts})/io) {
+ if (not $postinghost =~ /(?:$config{phn_exempt})/io) {
return reject('EMP (phn nph)', 'EMP')
if $PHNhistory->add("$postinghost $sortgrps");
};
@@ -1088,8 +1098,8 @@
if ($config{do_phr} and $gr{phrinc}
and not ($gr{binary} and $lines > 100)) {
if ($postinghost
- and not $postinghost =~ /(?:$config{bad_nph_hosts})/o) {
- if (not $postinghost =~ /(?:$config{phr_exempt})/o) {
+ and not $postinghost =~ /(?:$config{bad_nph_hosts})/io) {
+ if (not $postinghost =~ /(?:$config{phr_exempt})/io) {
return reject('EMP (phr nph)', 'EMP')
if $PHRhistory->add("$postinghost");
}
@@ -1116,7 +1126,7 @@
}
if ($config{do_supersedes_filter} and $hdr{Supersedes}
- and not $postinghost =~ /$config{supersedes_exempt}/o) {
+ and not $postinghost =~ /$config{supersedes_exempt}/io) {
my $source;
if ($postinghost) {
$source = lc $postinghost;
@@ -1148,19 +1158,18 @@
if $hdr{Subject} =~ m#\[(\d+)/(\d+)\]$# and $1 > $2;
#
- # Reject bad From headers. We also check Sender and Reply-To
headers
- # against the same Regular Expression.
+ # Reject bad From/Sender/Reply-To headers.
if ($Bad_From) {
- return reject("Banned Reply-To ($1)", 'Bad Reply-To')
+ return reject("Reply-To ($hdr{'Reply-To'})",'Bad Reply-To')
if $hdr{'Reply-To'} =~ $Bad_From_RE;
- return reject("Banned Sender ($1)", 'Bad Sender')
+ return reject("Sender ($hdr{Sender})",'Bad Sender')
if $hdr{Sender} =~ $Bad_From_RE;
- return reject("Banned From ($1)", 'Bad From')
+ return reject("From ($hdr{From})", 'Bad From')
if $hdr{From} =~ $Bad_From_RE;
- };
+ }
# Reject bad Subject headers.
- return reject("Subject ($1)", 'Bad Subject')
+ return reject("Subject ($hdr{Subject})", 'Bad Subject')
if $Bad_Subject and $hdr{Subject} =~ $Bad_Subject_RE;
# Set a flag if the message body contains a URL. This means
later,
========================================================
Comments? I fixed some of the regex matches to be case insensitive, and
added the missing variables for "topic[1,2]" so that a local configuration
file may override.
Re: Cleanfeed Update 306 (additional comments)
Author: Steve Crook
Date: Tue, 05 Jan 2010 10:30
Date: Tue, 05 Jan 2010 10:30
27 lines
2450 bytes
2450 bytes
On Mon, 4 Jan 2010 16:14:32 -0800, D. Stussy wrote in Message-Id: <hhu094$8q5$1@snarked.org>: > Although you're using some sort of auto-versioning software, shouldn't the > version number and date variables logically be closer to the top of the > file? There's no harm leaving it embedded in the middle, and we do have > the text version in the comments at the header, but it just seems out of > place to be buried in the middle. I put them down there to keep the upper part as clutter free as possible. I didn't want internals defined above the warning about "No user servicable parts below". It then makes sense to put them below the %config section which users may want to use for reference. > OK, so we removed the "off_topic_maxgroups" variable, but shouldn't we add > "off_topic1_maxgroups" and the other 5 like variables (on_topic min/max) > here? No, off_topic_maxgroups was in there in error. That section relates to config_append which is for extending regexs stored in variables. > SEVEN regex comparisons across 3 diff-sections, but no "i" flag to make > them case insensitive? We may know what's in the variables, but we don't > know whether "Injection-Info" or "NNTP-Posting-Host" will be all lowercase. > Did we ever "tolower($postinghost)" globally? At the moment $postinghost isn't lowered but I can't think of any reason why it shouldn't be. It still needs some work doing on it as the Injection-Info regex is broken by the use of CFWS as defined in the RFC. I'll try and get that issue resolved asap.
Re: Cleanfeed Update
Author: Steve Crook
Date: Tue, 05 Jan 2010 10:53
Date: Tue, 05 Jan 2010 10:53
28 lines
2363 bytes
2363 bytes
On Mon, 4 Jan 2010 13:21:27 -0800, D. Stussy wrote in Message-Id: <hhtm4k$6cp$1@snarked.org>: > I've noticed that version 306 (2010-01-04 10:48:45Z) still has some regex > expressions that have things like "[Cc]" in them. Is this more efficient > than using the "i" flag on the actual comparison (to make the comparison > case insensitive)? Avoiding the case-alternative matching in favor of case > insensitive comparsions would make the program easier to read by a human. Yes, there are various regex's that need cleaning up in this manner. There are also some filters in Cleanfeed that are probably obsolete. When time permits I need to completely review it and try to tidy things up. It would also be nice to get all the variables localized so it can be run with a 'strict' pragma. > "poison_groups": For the "hipcrime" group names, I found > "h[0-9a-z]pc[lr][0-9a-z][mn]e" to be all encompassing and perhaps more > efficient as a single entry, evein if it does include combinations that > weren't actually used. Right. This is probably a good example of Cleanfeed obsolesance as these groups have seemingly faded into the distant past. ~/db$ egrep h[0-9a-z]pc[lr][0-9a-z][mn]e active alt.binaries.hipclone 0000000000 0000000001 y alt.h0pcr0me.waste.of.bandwidth 0000000000 0000000001 y alt.h1pcr1me.waste.of.bandwidth 0000000000 0000000001 y alt.h2pcr2me.waste.of.bandwidth 0000000000 0000000001 y alt.hipclone.waste.of.bandwidth 0000000000 0000000001 y
Re: Cleanfeed Update 306 (additional comments)
Author: Julien ÉLIE
Date: Tue, 05 Jan 2010 18:25
Date: Tue, 05 Jan 2010 18:25
32 lines
2759 bytes
2759 bytes
Hi Steve, >> SEVEN regex comparisons across 3 diff-sections, but no "i" flag to make >> them case insensitive? We may know what's in the variables, but we don't >> know whether "Injection-Info" or "NNTP-Posting-Host" will be all lowercase. >> Did we ever "tolower($postinghost)" globally? > > At the moment $postinghost isn't lowered but I can't think of any reason > why it shouldn't be. It still needs some work doing on it as the > Injection-Info regex is broken by the use of CFWS as defined in the RFC. > I'll try and get that issue resolved asap. RFC 5537 mentions for the Path: header: Some existing implementations treat <path-identity> as case- sensitive, some as case-insensitive. The <path-identity> therefore SHOULD be all lowercase and implementations SHOULD compare identities case-insensitively. It is not explicitly said that <path-identity> should be treated the same way in Injection-Info: and Xref: but I believe it should. The same name <path-identity> is used in RFC 5536 for the server name in these headers. -- Julien ÉLIE « Les mathématiques peuvent être définies comme une science dans laquelle on ne sait jamais de quoi on parle, ni si ce qu'on dit est vrai. » (Bertrand Russell)
Re: Cleanfeed Update 306 (additional comments)
Author: D. Stussy
Date: Tue, 05 Jan 2010 22:48
Date: Tue, 05 Jan 2010 22:48
33 lines
2563 bytes
2563 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:hi007j$40f$1@news.trigofacile.com... > >> SEVEN regex comparisons across 3 diff-sections, but no "i" flag to make > >> them case insensitive? We may know what's in the variables, but we don't > >> know whether "Injection-Info" or "NNTP-Posting-Host" will be all lowercase. > >> Did we ever "tolower($postinghost)" globally? > > > > At the moment $postinghost isn't lowered but I can't think of any reason > > why it shouldn't be. It still needs some work doing on it as the > > Injection-Info regex is broken by the use of CFWS as defined in the RFC. > > I'll try and get that issue resolved asap. > > RFC 5537 mentions for the Path: header: > > Some existing implementations treat <path-identity> as case- > sensitive, some as case-insensitive. The <path-identity> therefore > SHOULD be all lowercase and implementations SHOULD compare identities > case-insensitively. > > It is not explicitly said that <path-identity> should be treated the > same way in Injection-Info: and Xref: but I believe it should. > The same name <path-identity> is used in RFC 5536 for the server > name in these headers. Noted, but as "postinghost" is generally a DNS-derived name, and the DNS is case-insensitive, ....
Re: Cleanfeed Update
Author: D. Stussy
Date: Tue, 05 Jan 2010 22:51
Date: Tue, 05 Jan 2010 22:51
49 lines
3480 bytes
3480 bytes
"Steve Crook" <steve@mixmin.net> wrote in message news:slrnhk66i1.fc.steve@news.mixmin.net... > On Mon, 4 Jan 2010 13:21:27 -0800, D. Stussy wrote in > Message-Id: <hhtm4k$6cp$1@snarked.org>: > > I've noticed that version 306 (2010-01-04 10:48:45Z) still has some regex > > expressions that have things like "[Cc]" in them. Is this more efficient > > than using the "i" flag on the actual comparison (to make the comparison > > case insensitive)? Avoiding the case-alternative matching in favor of case > > insensitive comparsions would make the program easier to read by a human. > > Yes, there are various regex's that need cleaning up in this manner. > There are also some filters in Cleanfeed that are probably obsolete. > When time permits I need to completely review it and try to tidy things > up. It would also be nice to get all the variables localized so it can > be run with a 'strict' pragma. When doing a "perl -w" on my copy of the filter, I did find two variables that are imported ONLY from "cleanfeed.local" that seem to lack default definitions, but are still used - I got "reference to undefined variable" warnings. Other than that, everything seemed well. > > "poison_groups": For the "hipcrime" group names, I found > > "h[0-9a-z]pc[lr][0-9a-z][mn]e" to be all encompassing and perhaps more > > efficient as a single entry, evein if it does include combinations that > > weren't actually used. > Right. This is probably a good example of Cleanfeed obsolesance as > these groups have seemingly faded into the distant past. > > ~/db$ egrep h[0-9a-z]pc[lr][0-9a-z][mn]e active > alt.binaries.hipclone 0000000000 0000000001 y > alt.h0pcr0me.waste.of.bandwidth 0000000000 0000000001 y > alt.h1pcr1me.waste.of.bandwidth 0000000000 0000000001 y > alt.h2pcr2me.waste.of.bandwidth 0000000000 0000000001 y > alt.hipclone.waste.of.bandwidth 0000000000 0000000001 y However, I wold be against removal of its filter. I still see them in the active files of other sites. That means they could be used to spam at any time. (Yesterday, I did a scan of several hundred servers from my [dynamic] home IP address, sucking down active and newsgroup listings. These things are still out there.)
Re: Cleanfeed Update 306 (additional comments)
Author: D. Stussy
Date: Tue, 05 Jan 2010 22:56
Date: Tue, 05 Jan 2010 22:56
49 lines
3262 bytes
3262 bytes
"Steve Crook" <steve@mixmin.net> wrote in message news:slrnhk6571.fc.steve@news.mixmin.net... > On Mon, 4 Jan 2010 16:14:32 -0800, D. Stussy wrote in > Message-Id: <hhu094$8q5$1@snarked.org>: > > Although you're using some sort of auto-versioning software, shouldn't the > > version number and date variables logically be closer to the top of the > > file? There's no harm leaving it embedded in the middle, and we do have > > the text version in the comments at the header, but it just seems out of > > place to be buried in the middle. > > I put them down there to keep the upper part as clutter free as > possible. I didn't want internals defined above the warning about "No > user servicable parts below". It then makes sense to put them below the > %config section which users may want to use for reference. OK. However, perhaps all "user servicable parts" should be in "cleanfeed.local". > > OK, so we removed the "off_topic_maxgroups" variable, but shouldn't we add > > "off_topic1_maxgroups" and the other 5 like variables (on_topic min/max) > > here? > > No, off_topic_maxgroups was in there in error. That section relates to > config_append which is for extending regexs stored in variables. I'll have to look back at such, but these should be available to the local configuration somehow. I hadn't noticed whether they were in the override or append section. > > SEVEN regex comparisons across 3 diff-sections, but no "i" flag to make > > them case insensitive? We may know what's in the variables, but we don't > > know whether "Injection-Info" or "NNTP-Posting-Host" will be all lowercase. > > Did we ever "tolower($postinghost)" globally? > > At the moment $postinghost isn't lowered but I can't think of any reason > why it shouldn't be. It still needs some work doing on it as the > Injection-Info regex is broken by the use of CFWS as defined in the RFC. > I'll try and get that issue resolved asap. No hurry, at least until INN 2.5.2 comes out. ;-)
Re: Cleanfeed Update 306 (additional comments)
Author: D. Stussy
Date: Wed, 06 Jan 2010 00:02
Date: Wed, 06 Jan 2010 00:02
22 lines
1986 bytes
1986 bytes
"D. Stussy" <spam+newsgroups@bde-arc.ampr.org> wrote in message news:hi0g32$i2i$1@snarked.org... > ... > > > OK, so we removed the "off_topic_maxgroups" variable, but shouldn't we add > > > "off_topic1_maxgroups" and the other 5 like variables (on_topic min/max) > > > here? > > > > No, off_topic_maxgroups was in there in error. That section relates to > > config_append which is for extending regexs stored in variables. > > I'll have to look back at such, but these should be available to the local > configuration somehow. I hadn't noticed whether they were in the override > or append section. I have now looked back, and you were correct - that was the "append" section. I've corrected my implementation.
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