Thread View: news.software.readers
2 messages
2 total messages
Started by Nik Clayton
Fri, 09 Sep 1994 14:29
Setting the NEWSHEADER in trn
Author: Nik Clayton
Date: Fri, 09 Sep 1994 14:29
Date: Fri, 09 Sep 1994 14:29
50 lines
2600 bytes
2600 bytes
I want to change the header used by trn to include a new line, X-URL:.
According to the man page, I can do this by setting the environment
variable NEWSHEADER, and it handily shows me what the default is.
---- man page ----
HEADER (%)
The format of the header file for follow-ups. See
also NEWSPOSTER.
Default:
%(%[followup-to]=^$?:X-ORIGINAL-NEWSGROUPS: %n
)Newsgroups: %(%F=^$?%C:%F)
Subject: %(%S=^$?%"\n\nSubject: ":Re: %S)
Summary:
Expires:
%(%R=^$?:References: %R
)Sender:
Followup-To:
%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}
)Distribution: %(%i=^$?%"Distribution: ":%D)
Organization: %o
Keywords: %[keywords]
Cc: \n\n
---- man page ----
So, if I try and do:
setenv NEWSHEADER "%(%[followup-to]=^$?:X-ORIGINAL-NEWSGROUPS:
%n)Newsgroups: %( %F=^$?%C:%F)Subject: %(%S=^$?%\n\nSubject: :Re:
%S)Summary:Expires:%(%R=^$?:References: %R)Sender:
Followup-To:%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO})Distribution
: %(%i=^$?%Distribution: :%D)Organization: %oKeywords:
%[keywords]Cc: \n\n"
(line wrapped for clarity). But no joy, since the shell complains about
mismatched quotes.
I suspect I'm missing something simple here, but I can't figure out what
it is. Any suggestions appreciated.
x-posted to comp.unix.shell and news.software.readers. Followups set
back to me (flaky newsfeed here), I'll summarise any replies.
Many thanks, Nik
--
=-[Opinion, n: See the above text for an example]=-=[Kibo #: e]-[RYRYRY]=-=
=-[The Silly Sod Society: To perfect and to swerve]=-[beable]-=[TP U BG]=-=
Time is an illusion. Lunchtime doubly so.
Re: Setting the NEWSHEADER in trn
Author: Wayne Davison
Date: Fri, 09 Sep 1994 19:36
Date: Fri, 09 Sep 1994 19:36
35 lines
1814 bytes
1814 bytes
According to Nik Clayton <Nik.Clayton@brunel.ac.uk>:
> I want to change the header used by trn to include a new line, X-URL:.
> According to the man page, I can do this by setting the environment
> variable NEWSHEADER, and it handily shows me what the default is.
As mentioned in the HINTS.TRN file, put the following into your .trninit
file (if you don't have a .trninit file, create one and "setenv TRNINIT
~/.trninit"):
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
-ENEWSHEADER="%(%[followup-to]=^$?:X-ORIGINAL-NEWSGROUPS: %n
)Newsgroups: %(%F=^$?%C:%F)
Subject: %(%S=^$?%\"
Subject: \":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))
"
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Include everything between the cut lines verbatim and then add any extra
lines that you need.
--
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