🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66450

Re: INN 2.4 X-Trace Header

#66450
From: Marco d'Itri
Date: Sat, 09 Aug 2003 11:38
30 lines
1801 bytes
steve@nospam-goofer.co.uk wrote:

>I've configured INN to drop the NNTP-Posting-Host header, but the posters 
>address is still displayed in the X-Trace header.  Is there a simple way 
>to prevent this?  Historical postings seem to suggest modifying the INN 
>source, but I really want to avoid that approach.

/etc/news/filter/filter_nnrpd.pl:

#!/usr/bin/perl -wc
# vim: shiftwidth=4 tabstop=4 autoindent smartindent smarttab

use strict;
our (%hdr, $modify_headers, $user);

sub filter_post {
    my @delete_headers = qw(NNTP-Posting-Host X-Trace);

    if ($user eq 'md@newsguests') {
        push(@delete_headers, qw(Sender X-Complaints-To));
    }

    $hdr{$_} = undef foreach @delete_headers;
    $modify_headers = 1;
    return '';
}

-- 
ciao, |
Marco | * The Internet is full. Go away.  -- Joel Furr *
Technical Details
Message-ID: <bh2mep$cjs$1@wonderland.linux.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!mephistopheles.news.clara.net!news.clara.net!ecngs!feeder.ecngs.de!feed.news.nacamar.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!bofh.it!wonderland.linux.it!not-for-mail
References: <bh08nt$7i3$1@bananasplit.info>

Show Full Headers
Complete Article Headers
Message-ID: <bh2mep$cjs$1@wonderland.linux.it>
Subject: Re: INN 2.4 X-Trace Header
Date: Sat, 09 Aug 2003 11:38:01 +0000
From: Marco d'Itri <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int>
References: <bh08nt$7i3$1@bananasplit.info>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!mephistopheles.news.clara.net!news.clara.net!ecngs!feeder.ecngs.de!feed.news.nacamar.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!bofh.it!wonderland.linux.it!not-for-mail
Newsgroups: news.software.nntp
Organization: Italian Linux Society - http://www.linux.it
Lines: 30
User-Agent: tin/1.6.1-20030728 ("Vatersay") (UNIX) (Linux/2.6.0-test3 (i686))