Thread View: news.software.readers
1 messages
1 total messages
Started by Red
Fri, 12 Dec 1997 00:00
[trn] how to alter From: header
Author: 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.
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