Article View: news.software.readers
Article #41349inews braindamage (attn trn users)
From: Kaz Kylheku
Date: Fri, 05 Jun 1998 00:00
Date: Fri, 05 Jun 1998 00:00
48 lines
2330 bytes
2330 bytes
I've used trn for years, not realizing that the inews program that it uses
to post (via the Pnews shell script) downloads the server's active file
each time you post! What a waste of time!
I patched my copy of inews to use a local active file instead of grabbing
one from the server, if the local copy is available. I can now post
articles instantaneously. What a difference!
I had always though that the delays had something to do with the server.
Doh!!!
Inside the inews program, there is a function which abstracts the obtaining
of the active file: if there is a local copy, it will get that, otherwise
it will call a lower level function that gets it from the server.
That function is never called from anywhere, the function which posts
the article calls the lower-level one directly. I patched the code so
that it calls the higher level routine.
To do the same with your own inews, go to the inews.c source file,
and inside function main() change the relevant lines of code from:
/* Check the newsgroups. */
if ((F = CAlistOpen(FromServer, ToServer, (char *) NULL)) != NULL) {
to:
/* Check the newsgroups. */
if ((F = CAopen(FromServer, ToServer)) != NULL) {
Then add a file called ``active'' to your <wherever>/lib/news directory
(the <wherever>, of course, represents a path component that depends on where
you installed your inews.)
That file should contain the list of active newsgroups. You can easily
get it by doing a
telnet my.news.server 119 | tee active
list
quit
then edit out spurious material from the active file, such as the host's hello
message and the quit at the end; you want it to contain just the pure list of
newsgroups.
Technical Details
Message-ID:
<6l9rj9$sf8@espresso.cafe.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <6l9rj9$sf8@espresso.cafe.net> Subject: inews braindamage (attn trn users) Date: Fri, 05 Jun 1998 00:00:00 +0000 From: kaz@cafe.net (Kaz Kylheku) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 359970129 Sender: bill@espresso.cafe.net NNTP-Posting-Date: Fri, 05 Jun 1998 15:34:36 PDT Reply-To: kaz@cafe.net Organization: Internet Direct Newsgroups: news.software.readers