Thread View: news.software.nntp
3 messages
3 total messages
Started by Adam Bentley
Tue, 25 Jan 1994 12:49
Problems with INN 1.4/trn 3.3
Author: Adam Bentley
Date: Tue, 25 Jan 1994 12:49
Date: Tue, 25 Jan 1994 12:49
18 lines
1497 bytes
1497 bytes
Hi,
I'm having slight teething troubles with trn 3.3 and INN 1.4.
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.
What do I need to change to make it use the user preferred values?
thanks.
--
_
/-\dam
-------------------------------------------------------------------------
FLESH: Adam Bentley (Fraggle), Systems/Networking, Coventry University. UK
INET : A.Bentley@hermes.coventry.ac.uk
Re: Problems with INN 1.4/trn 3.3
Author: Rich Salz
Date: Tue, 25 Jan 1994 16:48
Date: Tue, 25 Jan 1994 16:48
26 lines
2012 bytes
2012 bytes
In <2i34hj$e43@rowan.coventry.ac.uk> ccx009@rowan.coventry.ac.uk (Adam Bentley) writes:
> 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.
I can't answer for trn (look at the Pnews.header script) but I can tell
you what INN's inews does.
If there is no organization, it does getenv("ORGANIZATION"); edit
include/paths.h and change _ENV_ORGANIZATION if you prefer others pelling.
If there is nothing in the environment it reads inn.conf. If there
is nothing there, it drops the header. nnrpd repreats the process when
it gets an article without an Organization header.
inews gets the user's name from getpwuid(), nowhere else. If the user
puts their own From line, and the email address is *not* what inews
would put out, inews adds a Sender line.
You can find out what inn does by reading doc/inn.conf.5, looking up
HeaderCleanFrom in doc/libinn.3, and reading doc/inews.1
The short answer: get Pnews to do what you want and INN will probably
like it.
/r$
Re: Problems with INN 1.4/trn 3.3
Author: 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
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