Article View: news.software.nntp
Article #50384Re: Help email addresses.. Russ
From: Benedict White
Date: Sat, 03 Feb 2001 01:54
Date: Sat, 03 Feb 2001 01:54
44 lines
2354 bytes
2354 bytes
Russ Allbery wrote:
> Benedict White <ben@cse-ltd.co.uk> writes:
>
> > Russ, many thanks for that perl script you gave me for removing email
> > address's as they are posted. Only I seem to have lost it due to a
> > hurried server build caused by a weakness in wu-ftp.
>
> > Which file are the perl filters in?
>
> > I think I may have the file backed up some where, but can't find your
> > gem of a suggestion.
>
> pathfilter/filter_nnrpd.pl (usually pathnews/bin/filter).
>
> --
> Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Many thanks Russ. Could not recover the file, lost the original posts... Then
checked deja. The code segment below is just so that I have it on file in
several places. Many thanks.
sub filter_post {
$modify_headers = 1;
local $_ = $hdr{From};
s/\s*<.*?>// || s/^.*?\((.*)\)/$1/ || ($_ = '');
$hdr{From} = $_ . ' <anonymous@anonymous.invalid>';
}
Kindest regards
--
Benedict White
ben@cse-ltd.co.uk
DBase Charter Member (100 0723)
PS still have not got a clue what the line that starts s/\ means.
Technical Details
Message-ID:
<3A7B64C5.B0FDD345@cse-ltd.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!newspeer.clara.net!news.clara.net!dispose.news.demon.net!news.demon.co.uk!demon!mailgate.cse-ltd.co.uk!not-for-mailReferences:
<3A7AB810.2B36258F@cse-ltd.co.uk> <yl66isokx1.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <3A7B64C5.B0FDD345@cse-ltd.co.uk> Subject: Re: Help email addresses.. Russ Date: Sat, 03 Feb 2001 01:54:13 +0000 From: Benedict White <ben@cse-ltd.co.uk> References: <3A7AB810.2B36258F@cse-ltd.co.uk> <yl66isokx1.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!newspeer.clara.net!news.clara.net!dispose.news.demon.net!news.demon.co.uk!demon!mailgate.cse-ltd.co.uk!not-for-mail Newsgroups: news.software.nntp Organization: Computer Systems Engineering Ltd. NNTP-Posting-Host: mailgate.cse-ltd.co.uk X-NNTP-Posting-Host: mailgate.cse-ltd.co.uk:195.173.171.194 X-Trace: news.demon.co.uk 981165261 nnrp-10:3661 NO-IDENT mailgate.cse-ltd.co.uk:195.173.171.194 X-Complaints-To: abuse@demon.net X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 43