🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81228

Re: Tracing newsgroups posts

#81228
From: Steve Crook
Date: Wed, 03 Jun 2009 19:26
32 lines
1806 bytes
On Wed,  3 Jun 2009 18:19:35 +0200 (CEST), noauth wrote in
Message-Id: <02a6d907d2f4bc8ee1509c616a2fa269@remailer.gabrix.ath.cx>:

> Could you write a filter_nnrpd.pl for the community ?

This is only a simple example.  I'd suggest using postfilter for a
complete solution.

#!/usr/bin/perl -wc
# vim: set tabstop=4 shiftwidth=4 expandtab syntax=perl:

use strict;
use Digest::MD5;
our (%hdr, $modify_headers);

sub filter_post {

    # Hash the NNTP-Posting-Host header
    my $ctx = Digest::MD5->new;
    $ctx->add($hdr{'NNTP-Posting-Host'});
    $ctx->add("A little salt");
    $hdr{'NNTP-Posting-Host'} = $ctx->hexdigest;
    undef $hdr{'X-Trace'};

    $modify_headers = 1;
    return '';
};

-- 
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: <slrnh2djjr.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!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!news.mixmin.net!not-for-mail
References: <02a6d907d2f4bc8ee1509c616a2fa269@remailer.gabrix.ath.cx>

Show Full Headers
Complete Article Headers
Message-ID: <slrnh2djjr.77m.steve@news.mixmin.net>
Subject: Re: Tracing newsgroups posts
Date: Wed, 03 Jun 2009 19:26:51 +0000
From: Steve Crook <steve@mixmin.net>
References: <02a6d907d2f4bc8ee1509c616a2fa269@remailer.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!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!news.mixmin.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Lines: 32
NNTP-Posting-Host: b421ff0445b5e915dcbceaec1788b827
X-Complaints-To: abuse@mixmin.net
NNTP-Posting-Date: Wed, 3 Jun 2009 19:26:51 +0000 (UTC)
User-Agent: slrn/pre1.0.0-11 (Linux)
X-Original-Bytes: 1583