Thread View: news.software.readers
3 messages
3 total messages
Started by Jason Mastaler
Fri, 06 Jan 1995 05:16
[HELP] Headers in TRN
Author: Jason Mastaler
Date: Fri, 06 Jan 1995 05:16
Date: Fri, 06 Jan 1995 05:16
18 lines
1378 bytes
1378 bytes
Hello, I am having trouble figuring out how to define and add headers when using TRN. I would like to customize my posting headers such as the "From:", header. An example would be --> say the usual address TRN assigns to my "From:" header is "jm@machname.somename.org". how would I change it to just read as "jm@somename.org"? Bascially just to strip the machine name off the address. I wasn't able to determine this from the manual pages. Also, how would i add headers not normally added by the default TRN? (such as NNTP-Posting-Host, or X-Newsreader?) Can anybody offer some help in these areas? If so, send replies to 'jm@netcom.com', as I am not a regular reader of these groups. THanks much. - Jason Mastaler (jm@netcom.com)
Re: [HELP] Headers in TRN
Author: Jon Bell
Date: Sat, 07 Jan 1995 20:49
Date: Sat, 07 Jan 1995 20:49
26 lines
2011 bytes
2011 bytes
Jason Mastaler <jm@netcom.com> wrote: > I would like to customize my posting headers such as the "From:", >header. An example would be --> say the usual address TRN >assigns to my "From:" header is "jm@machname.somename.org". how would >I change it to just read as "jm@somename.org"? The simple answer at the user level is, "you can't." Trn doesn't actually add the "From:" line to the header. When you tell trn to post an article, it hands the article to the "inews" or "injnews" program, which adds the "From:" line (among other things) and puts the article in the news stream. So, if you really need to have a different address in the "From:" line (say if it's incorrect and replies to that address bounce), you need to talk to whoever is in charge of maintaining the news software on your machine, and get them to re-configure and re-install "inews" or "injnews." >Also, how would i add headers not normally added >by the default TRN? (such as NNTP-Posting-Host, or X-Newsreader?) You should be able to put them in by hand when you're editing the article, although you might run into trouble if they conflict with default headers that are added elsewhere (say in "inews" or "injnews"). -- Jon Bell <jtbell@presby.edu> Presbyterian College Dept. of Physics and Computer Science Clinton, South Carolina USA
Re: [HELP] Headers in TRN
Author: 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
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