Article View: news.software.nntp
Article #2388Re: Problems with INN 1.4/trn 3.3
From: Wayne Davison
Date: Tue, 25 Jan 1994 22:21
Date: Tue, 25 Jan 1994 22:21
45 lines
2623 bytes
2623 bytes
According to Adam Bentley <ccx009@rowan.coventry.ac.uk>:
> I can't seem to make any postings take account of a users
> preferences for Name & Organisation. Even if the user sets
> NAME="whatever" or creates a .fullname file, these seem to be
> ignored in favour of the users /etc/passwd name entry.
First of all, trn doesn't create a from line -- that's the posting
software's job, and trn lets it do it. However, you can customize
your NEWSHEADER in trn to insert a From line of your choosing and
inn will honor it (see below). As for the organization, if you set
the NEWSORG or (if not configured out) the ORGANIZATION environment
variable to a custom value (possibly via -E in trn) then trn will
use this in preference to the default, Configured value.
For the non-trn experts, if you break up the NEWSHEADER definition
from the common.h file into the format required by an option file
(i.e. see the TRNINIT variable or the global INIT file) you get the
following text. Use this to modify trn's headers used for posting
(don't use Pnews directly if you customize the headers -- use 'f'
from inside a newsgroup or ".f" from the newsgroup selection prompt
to post a new article). Note that the apparent doubling of the
subject line is in-fact a prompt for a subject if none is available
from the current article (see the %" interp). Also note that all
the empty header lines have trailing spaces after the colons.
-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))
"
--
Wayne Davison
davison@borland.com
Technical Details
Message-ID:
<CK7I48.48L@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!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!swrinde!sgiblab!sgigate.sgi.com!olivea!decwrl!decwrl!borland.com!davisonReferences:
<2i34hj$e43@rowan.coventry.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <CK7I48.48L@borland.com> Subject: Re: Problems with INN 1.4/trn 3.3 Date: Tue, 25 Jan 1994 22:21:44 GMT From: davison@borland.com (Wayne Davison) References: <2i34hj$e43@rowan.coventry.ac.uk> 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!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!swrinde!sgiblab!sgigate.sgi.com!olivea!decwrl!decwrl!borland.com!davison Newsgroups: news.software.nntp,news.software.b,news.software.readers Organization: Borland International Distribution: inet Lines: 45