🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Benedict White Fri, 02 Feb 2001 13:37
Help email addresses.. Russ
#50370
Author: Benedict White
Date: Fri, 02 Feb 2001 13:37
22 lines
1468 bytes
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.
Now using INN 2.2.3

Kindest regards



--
Benedict White
ben@cse-ltd.co.uk

DBase Charter Member (100 0723)


Re: Help email addresses.. Russ
#50378
Author: Russ Allbery
Date: Fri, 02 Feb 2001 21:05
16 lines
1461 bytes
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/>
Re: Help email addresses.. Russ
#50384
Author: Benedict White
Date: Sat, 03 Feb 2001 01:54
44 lines
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.

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