🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #55265

Re: Changing From: line in trn

#55265
From: Jeremy
Date: Tue, 14 Dec 1999 00:00
30 lines
1716 bytes
Stephen Lee - Post replies please  <nobody@nowhere.net> wrote:

> Has anyone patch trn to supply a different From: line depending on
> which newsgroup one is posting?

Yes, but if all you want to change is the From line, patching is
probably overkill.  If you're using the default NEWSHEADER, then
you can change the FROM variable to what you want your From line
to be.  If you've made your own NEWSHEADER, just make sure it sets
the From line based on FROM.  Then you use the per-group killfiles
to change the variable.

In the killfile for a group where you want a different From line:

&-EFROM="Foo <foo@bar>"
X&-EFROM="Normal <normal@address>"

That'll change your From to foo@bar when you enter the group, and
change it back to normal@address when you exit the group.

Note that trn will not allow you to cancel or supersede your own
articles if you do this, since it will still try to match the target
article's From line against your login@hostname.  I've patched trn to
fix that too, and I really should get around to sending my patches off
to Wayne one of these days.

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Technical Details
Message-ID: <8364tn$86s$1@s00perNooZ.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: <832hii$77i1@nntp.cig.mot.com>

Show Full Headers
Complete Article Headers
Message-ID: <8364tn$86s$1@s00perNooZ.com>
Subject: Re: Changing From: line in trn
Date: Tue, 14 Dec 1999 00:00:00 +0000
From: Jeremy <bofh@netscum.dk>
References: <832hii$77i1@nntp.cig.mot.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: 560645415
Organization: There Is No Organization
X-Meow: Meow
Newsgroups: news.software.readers