🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #47973

Re: E Mail addresses

#47973
From: Benedict white
Date: Sat, 19 Aug 2000 01:20
40 lines
2549 bytes

Russ Allbery wrote:

> Benedict white <ben@cse-ltd.co.uk> writes:
> > Russ Allbery wrote:
>
> >>     Unlike the innd Perl filter, the nnrpd Perl filter can modify the
> >>     %hdr hash.  In fact, if the Perl variable $modify_headers is set to
> >>     true after filter_post() returns, the contents of the %hdr hash
> >>     will be written back to the article replacing the original headers.
> >>     filter_post() can therefore make any modifications it wishes to the
> >>     headers and those modifications will be reflected in the article as
> >>     it's finally posted.  The article body cannot be modified in this
> >>     way; any changes to $body will just be ignored.
>
> > Where do I set $modify_headers=true
>
> $modify_headers = 1; is probably better.
>
> You do this in filter_post.  In fact, something like:
>
> sub filter_post {
>     $modify_headers = 1;
>     $hdr{From} = 'Anonymous <anonymous@anonymous.invalid>';
>     return '';
> }
>
> is probably pretty close to exactly what you want.
>
> --
> Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

is there an easy way to seperate the from in to sender and email?

Kindest regards

Benedict White

Technical Details
Message-ID: <399DE0DD.888A07E@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-east!supernews.com!newscon01.news.prodigy.com!prodigy.com!newsfeed.cwix.com!isdnet!newsgate.cistron.nl!bullseye.news.demon.net!demon!news.demon.co.uk!demon!cseltd.demon.co.uk!not-for-mail
References: <399D0B90.14DA6C2@cse-ltd.co.uk> <yl4s4ia3pj.fsf@windlord.stanford.edu> <399DA67C.B89D1CD0@cse-ltd.co.uk> <yl1yzmi6lp.fsf@windlord.stanford.edu> <399DD6C3.D4157B36@cse-ltd.co.uk> <ylzomadt2x.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <399DE0DD.888A07E@cse-ltd.co.uk>
Subject: Re: E Mail addresses
Date: Sat, 19 Aug 2000 02:20:29 +0100
From: Benedict white <ben@cse-ltd.co.uk>
References: <399D0B90.14DA6C2@cse-ltd.co.uk> <yl4s4ia3pj.fsf@windlord.stanford.edu> <399DA67C.B89D1CD0@cse-ltd.co.uk> <yl1yzmi6lp.fsf@windlord.stanford.edu> <399DD6C3.D4157B36@cse-ltd.co.uk> <ylzomadt2x.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-east!supernews.com!newscon01.news.prodigy.com!prodigy.com!newsfeed.cwix.com!isdnet!newsgate.cistron.nl!bullseye.news.demon.net!demon!news.demon.co.uk!demon!cseltd.demon.co.uk!not-for-mail
Newsgroups: news.software.nntp
Organization: Computer Systems Engineering Ltd
NNTP-Posting-Host: cseltd.demon.co.uk
X-NNTP-Posting-Host: cseltd.demon.co.uk:158.152.107.142
X-Trace: news.demon.co.uk 966644698 nnrp-12:21669 NO-IDENT cseltd.demon.co.uk:158.152.107.142
X-Complaints-To: abuse@demon.net
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 39