Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

[news.software.readers] trn newsreader FAQ, part 1: Basics
Section - CCHL: How can I customize my header lines?

( Part1 - Part2 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Business Photos and Profiles ]


Top Document: [news.software.readers] trn newsreader FAQ, part 1: Basics
Previous Document: CSRP: Can I get rid of the "hit return" prompts?
Next Document: CWHT: Where can I find some hints and configuration examples?
See reader questions & answers on this topic! - Help others by sharing your knowledge
        Steven King, Software Archaeologist <king@wildebeest.cig.mot.com>,
        Wayne Davison <trn@clari.net>,
        Peter J. Kappesser <Peter_Kappesser@promail.com>

> I would like to have trn add a header line of my choice, such as:
> "X-Disclaimer: Even I put no faith in what I write."

Look for the "NEWSHEADER" or "MAILHEADER" environment variables. The
best thing to do is to put it in your .trninit file (and point the
TRNINIT environment variable at the file if you haven't already done
so). Then, use the default definition as mentioned in the man page (or
copy it out of the common.h source file, if you have access to it), and
tweak the value as you desire.

The following lines represent trn's default headers for posting an
article.  If you want to customize your header copy this to your
.trninit file and modify it (and _don't_ use Pnews directly to post,
use trn -- the ".f" command from newsgroup prompt works well for this).
[Caution: Lines have been quoted with "> " to conform to FAQ minimal
digest format, which forbids "Subject:" at the beginning of a line in
the body of a section; and, the first line is longer than 80 columns.]

> -ENEWSHEADER="%(%[followup-to]=^$?:%(%[followup-to]=^%n$?: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))
>
> "

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




Top Document: [news.software.readers] trn newsreader FAQ, part 1: Basics
Previous Document: CSRP: Can I get rid of the "hit return" prompts?
Next Document: CWHT: Where can I find some hints and configuration examples?

Part1 - Part2 - Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
@tigerden.com (Peter J. Kappesser)





Last Update November 21 2011 @ 01:00 PM