Article View: news.software.readers
Article #14255Re: [HELP] Headers in TRN
From: Wayne Davison
Date: Sun, 08 Jan 1995 07:35
Date: Sun, 08 Jan 1995 07:35
37 lines
1776 bytes
1776 bytes
According to Jason Mastaler <jm@netcom.com>:
> I am having trouble figuring out how to define and add headers when using
> TRN.
To do so you have to define the whole news header. The HINTS.TRN file
that comes with trn explains how to do this, and I believe that the trn
FAQ also covers this.
Here's a slightly updated version of the NEWSHEADER to put into your
.trninit file (whatever your TRNINIT environment variable points to):
-ENEWSHEADER="%(%[followup-to]=^$?:%(%[followup-to]=^%n$?:X-ORIGINAL-NEWSGROUPS: %n
))Newsgroups: %(%F=^$?%C:%F)
Subject: %(%S=^$?%\"^J^JSubject: \":Re: %S)
Summary:
Expires:
%(%R=^$?:References: %R
)Sender:
Followup-To:
%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}
)Distribution: %(%i=^$?%\"Distribution: \":%D)
Organization: %o
Keywords: %[keywords]
Cc: %(%F=poster?%t:%(%F!=@?:%F))
^J"
Add any headers you like to this basic definition.
> I would like to customize my posting headers such as the "From:",
> header.
Note that while trn doesn't normally generate a From: header (that's
inews's job), you _can_ supply your own custom version and inews will
(typically) honor it.
--
Wayne Davison
davison@borland.com
Technical Details
Message-ID:
<D22t3z.JJ6@borland.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!decwrl!borland.com!davisonReferences:
<jmD1yxC5.F7n@netcom.com>Show Full Headers
Complete Article Headers
Message-ID: <D22t3z.JJ6@borland.com> Subject: Re: [HELP] Headers in TRN Date: Sun, 8 Jan 1995 07:35:59 GMT From: davison@borland.com (Wayne Davison) References: <jmD1yxC5.F7n@netcom.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!decwrl!borland.com!davison Newsgroups: news.software.readers,news.software.nntp Organization: Borland International Lines: 37