🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #32595

Re: Changing "From:" field in trn

#32595
From: swb
Date: Sun, 06 Apr 1997 00:00
29 lines
1769 bytes
According to the devil and swb@mercury.campbell-mithun.com..
 !According to the devil and klausner@[165.113.1.12]..
 ! ! In an effort to reduce the amount of e-mail spam I get, I'd like to
 ! ! reset the "From:" field in my postings. The reader I'm using is trn.
 ! ! I've found how to change most of the other fields, but trn doesn't seem
 ! ! to offer a way to set "From:".
 !
 !I don't think trn 3.6 can do this.  I think you need to hack Pnews, which
 !feeds the article to inews, which actually posts it.

Actually, I did this today.  I took advtange of the fact that trn sets all
the environment variables set with -E in TRNINIT, even if they aren't
variables that trn itself uses.

I then modified the bit in Pnews where it writes the header file to $tmpart,
I have it check my NEWSFROM variable to see if it is non-null, and then
insert a "From: $NEWSFROM" at the beginning of $tmpart.

I guess it's kind of a kludge, but it was the best I could do, and it
doesn't break Pnews for multiuser machines.

-shawn

-- 
Shawn Barnhart 
swb@mercury.campbell-mithun.com

Technical Details
Message-ID: <5i943h$mnu@maxgate.campbell-mithun.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <5hovje$51b@crl.crl.com> <5i83nu$aqh@maxgate.campbell-mithun.com>

Show Full Headers
Complete Article Headers
Message-ID: <5i943h$mnu@maxgate.campbell-mithun.com>
Subject: Re: Changing "From:" field in trn
Date: Sun, 06 Apr 1997 00:00:00 +0000
From: swb@mercury.campbell-mithun.com
References: <5hovje$51b@crl.crl.com> <5i83nu$aqh@maxgate.campbell-mithun.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 231283289
Sender: swb@maxgate.campbell-mithun.com
Organization: The Back Bedroom
Reply-To: swb@mercury.campbell-mithun.com
Newsgroups: news.software.readers