Thread View: news.software.readers
1 messages
1 total messages
Started by Kaz Kylheku
Fri, 05 Jun 1998 00:00
inews braindamage (attn trn users)
Author: 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.
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