Article View: news.software.readers
Article #37563[trn] how to alter From: header
From: Red
Date: Fri, 12 Dec 1997 00:00
Date: Fri, 12 Dec 1997 00:00
48 lines
2374 bytes
2374 bytes
roberto@eurocontrol.fr (Ollivier Robert) wrote:
> > So: can anyone point me to such a document or explain
> > briefly how one would go about 'munging' a From: header
> > (i.e. snorwood@redballoon.netNOSPAM) using Pnews and trn? (No, I'm
> > not interested in doing this personally, but I've been asked about this
> > by others).
>
> Modify the NEWSHEADER variable inside .trn/trnrc and you're in. If you
> don't have one, copy-paster the one in the manpage and add a From: entry.
Oh, so THAT'S how you do it!
I was trying to do all sorts of things before simpling making
an alias for trn.
> NEWSHEADER="%(%[followup-to]=^$?:%(%[followup-to]=^%n$?:X-ORIGINAL-NEWSGROUPS: %n
> ))Newsgroups: %(%F=^$?%C:%F)
> Subject: %(%S=^$?%\"
>
> Subject: \":Re: %S)
> Summary:
> Cc: %f
> %(%R=^$?:References: %R
> )Sender:
> Followup-To:
> %(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}
> )Distribution: %(%i=^$?%\"Distribution: \":%D)
> Organization: %o
> Keywords: %[keywords]
> Mime-Version: 1.0
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 8bit
Or you can do what I do:
alias trn 'trn -a -B -e "-EATTRIBUTION=%[from] wrote:\n" "-EMAILHEADER=Subject: %s\nNewsgroups: %n\nReferences: %R\nTo: %t\nFrom: red@rahul.net (Red)\n" "-ENEWSHEADER=Subject: %s\nNewsgroups: %n\nReferences: %R\nFrom: red@rahul.net (Red)\nApproved: %[approved]\nOrganization: *\n\n" "-EYOUSAID=%[from] wrote:\n" "-F> " -f -h +hFrom +hNewsgroups +hFollowups +hApproved +hControl +hReply +hSender +hDate +hMessege +hNNTP +hX-No -L -N -OtD -p. -r -T -t -u -v -X1 -x11ls'
"All will be joy-smiths and their task shall be to beat out
laughter from the ringing anvil of life"
-- Jack London
finger red.long@rahul.net for public kitty.
Technical Details
Message-ID:
<66s9ma$mbd$1@samba.rahul.net>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-mailReferences:
<63d2ko$crk27@wombat.wm.edu> <642cu9$b3k$4@polaris.eurocontrol.fr>Show Full Headers
Complete Article Headers
Message-ID: <66s9ma$mbd$1@samba.rahul.net> Subject: [trn] how to alter From: header Date: Fri, 12 Dec 1997 00:00:00 +0000 From: red@rahul.net (Red) References: <63d2ko$crk27@wombat.wm.edu> <642cu9$b3k$4@polaris.eurocontrol.fr> 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: 297724120 NNTP-Posting-User: red Newsgroups: news.software.readers