🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81247

Re: mixmin.net cleanfeed

#81247
From: Steve Crook
Date: Thu, 04 Jun 2009 09:01
37 lines
2392 bytes
On Thu, 04 Jun 2009 03:22:46 +0200, Gab wrote in
Message-Id: <h077q4$3bh$1@news.gabrix.ath.cx>:

>> filter: Cannot open /news/log/cleanfeed.stats.html: No such file or
>> directory
http://www.mixmin.net/cleanfeed/config.html#html_statfile
You need to point html_statfile to a file in which you want html stats
generated.  For default configurations, something like this:
html_statfile => '/usr/local/news/cleanfeed',

>> sub local_filter_last {
>>     my $localpost =3D 0;
>>     #$localpost =3D 1 if $hdr{'X-Trace'} and $hdr{'X-Trace'} =3D~ /\.ga=
> brix\.ath\.cx/;
>>     $localpost =3D 1 if $hdr{Path} =3D~ /^not\-for\-mail$/;
>
> Shall i keep commented the above ?
It depends if you want to use a localpost flag.  In most instances it's
a good thing to have so you can apply filters specifically to posts
generated locally or perhaps specifically to non-local posts.

As a (not very good) example:
my $localpost = 0;
$localpost = 1 if $hdr{Path} =~ /^not\-for\-mail$/;
$localpost = 1 if $hdr{'X-Complaints-To'} =~ /usenet\@gabrix\.ath\.cx/;
$localpost = 1 if $hdr{'Message-ID'} =~ /\@news\.gabrix\.ath\.cx>$/;

if ($localhost) {
    saveart('path-preload') if not $hdr{Path} =~ /^not\-for\-mail$/;
} else {
    saveart('external-to-local') if $hdr{Newsgroups} =~ /^local\.|,local\./;
};

-- 
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>
Technical Details
Message-ID: <slrnh2f3at.77m.steve@news.mixmin.net>
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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!news.mixmin.net!not-for-mail
References: <h0724p$v36$1@news.gabrix.ath.cx> <h077q4$3bh$1@news.gabrix.ath.cx>

Show Full Headers
Complete Article Headers
Message-ID: <slrnh2f3at.77m.steve@news.mixmin.net>
Subject: Re: mixmin.net cleanfeed
Date: Thu, 04 Jun 2009 09:01:17 +0000
From: Steve Crook <steve@mixmin.net>
References: <h0724p$v36$1@news.gabrix.ath.cx> <h077q4$3bh$1@news.gabrix.ath.cx>
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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!news.mixmin.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Lines: 37
NNTP-Posting-Host: b421ff0445b5e915dcbceaec1788b827
X-Complaints-To: abuse@mixmin.net
NNTP-Posting-Date: Thu, 4 Jun 2009 09:01:17 +0000 (UTC)
User-Agent: slrn/pre1.0.0-11 (Linux)