🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Steve Crook Tue, 13 Oct 2009 13:42
Cleanfeed Update
#81998
Author: Steve Crook
Date: Tue, 13 Oct 2009 13:42
73 lines
4185 bytes
Hi all,

It's been about 3 months since the last Cleanfeed release and in the
intervening period, there have been a few bug fixes, feature additions
and scoring tweaks.  This morning I have prepared a new release (r271)
and it is now available for download from the usual URLs:

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


A number of these updates have no effect on the default behaviour of
Cleanfeed.  In some cases they just set flags that are of use in
creating local filters.  Other changes, such as the ratio based scorings
are disabled by default but I'd be very pleased to receive feedback from
anyone who cares to try them.

Place the following entries in local_filter_reject to log rejected
articles:
saveart('capratio', $vr) if $vr =~ /^Scoring/ and $score =~ /CapRat/;
saveart('urlratio', $vr) if $vr =~ /^Scoring/ and $score =~ /UrlRat/;
saveart('symratio', $vr) if $vr =~ /^Scoring/ and $score =~ /SymRat/;

Two new functions are now read from cleanfeed.local, these are:
local_flag_localfeed
local_flag_spamsource
If these don't exist, there will be no change in Cleanfeed behaviour.

Changelog:
* New topic filtering to prevent meow style crosspost filtering to
  off-topic groups.  By default, no groups are defined.  See
  topic1_groups, topic2_groups and off_topic_maxgroups.
  Suggested by D. Stussy.

* New ratio based scoring filters, (disabled by default).  These enhance
  the traditional scoring filters by adding weight to URL, Symbol and
  Caps ratios of content.  See do_ratio_scoring and ratio_exclude.

* Added a localhier flag to $gr.  This will be set True if all the
  groups in a distro match '^local\.'.  It's not currently used anywhere
  within Cleanfeed itself but can be useful for cleanfeed.local recipes.

* Read a new function, local_flag_localfeed from cleanfeed.local.  The
  role of this function is to enable the operator to define a set of
  rules that identify the posting as originating locally.  In this
  context, locally implies, within the sphere of that operator's
  environment.  If the function returns True, a global flag, $localfeed is
  set to True.  Currently unused within Cleanfeed.

* Read a new function, local_flag_spamsource.  This function should
  return True if the operator considers the source of the message to be
  spam friendly.  This in turn will set a a global flag, $spamsource.
  Matching articles will have their scores weighted depending on URL
  content and whether there's a References header.
  Hardcoding a couple of sources would have been very easy, but no doubt
  controversial.  If anyone would like example entries, please ask. :)

* Resolved some bugs with HTML/MIME handling.  Also add better
  granularity for dealing with HTML with embedded <img> tags.
  See block_html_img.

* Added support for a bad_from file.  This checks against Reply-To,
  Sender and From headers.  Requested by D. Stussy.

* Tweaked various scoring filters and associated regexs.  Too many to
  document here, please review source and diff files.
Re: Cleanfeed Update
#81997
Author: Julien ÉLIE
Date: Tue, 13 Oct 2009 20:51
20 lines
1854 bytes
Hi Steve,

Thanks for your new update.

> * Read a new function, local_flag_spamsource.  This function should
>  return True if the operator considers the source of the message to be
>  spam friendly.  This in turn will set a a global flag, $spamsource.
>  Matching articles will have their scores weighted depending on URL
>  content and whether there's a References header.
>  Hardcoding a couple of sources would have been very easy, but no doubt
>  controversial.  If anyone would like example entries, please ask. :)

Couldn't it be put commented in the function?

-- 
Julien ÉLIE

« On ne peut jamais être neutre.
  Le silence est une opinion. » (Henri Moret) 
Re: Cleanfeed Update
#81999
Author: Steve Crook
Date: Tue, 13 Oct 2009 22:37
15 lines
1487 bytes
On Tue, 13 Oct 2009 22:51:45 +0200, Julien ÉLIE wrote in
Message-Id: <hb2p96$og9$1@news.trigofacile.com>:

> Couldn't it be put commented in the function?

Hi Julien,

Until the actual release it was hardcoded in Cleanfeed but I decided
at the last moment that it was better leaving it to the operator and
added the function to cleanfeed.local.

The entries that were previously hardcoded can be viewed in the
documentation:
http://www.mixmin.net/cfdev/files.html#local_flag_spamsource
>
Re: Cleanfeed Update
#82000
Author: Steve Crook
Date: Tue, 13 Oct 2009 22:42
9 lines
1276 bytes
On Tue, 13 Oct 2009 22:37:00 +0000 (UTC), Steve Crook wrote in
Message-Id: <slrnhda08c.5p7.steve@news.mixmin.net>:

> The entries that were previously hardcoded can be viewed in the
> documentation:
> http://www.mixmin.net/cfdev/files.html#local_flag_spamsource

Sorry, wrong url.  That should be:
http://www.mixmin.net/cleanfeed/files.html#local_flag_spamsource
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