Article View: news.software.readers
Article #11308Setting the NEWSHEADER in trn
From: 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.
Technical Details
Message-ID:
<Cvv9LE.IqE@brunel.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.shell.mbox.zip!nntp.gmd.de!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!rcvie!Austria.EU.net!newsfeed.ACO.net!swidir.switch.ch!univ-lyon1.fr!ws41.cnusc.fr!ciril.fr!univ-lille1.fr!zaphod.crihan.fr!warwick!uknet!brunel!ccusnjcShow Full Headers
Complete Article Headers
Message-ID: <Cvv9LE.IqE@brunel.ac.uk> Subject: Setting the NEWSHEADER in trn Date: Fri, 9 Sep 1994 14:29:33 GMT From: Nik.Clayton@brunel.ac.uk (Nik Clayton) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.shell.mbox.zip!nntp.gmd.de!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!rcvie!Austria.EU.net!newsfeed.ACO.net!swidir.switch.ch!univ-lyon1.fr!ws41.cnusc.fr!ciril.fr!univ-lille1.fr!zaphod.crihan.fr!warwick!uknet!brunel!ccusnjc Newsgroups: news.software.readers,comp.unix.shell Followup-To: poster Organization: Brunel University, Uxbridge, UK Lines: 49